/* Google Fonts - Handlee */
@import url('https://fonts.googleapis.com/css2?family=Handlee&display=swap');

/* Hero specifics */
.hero { min-height: 100vh; height: 100svh; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(110%) contrast(105%);
  transform: scale(1.12);
  will-change: transform;
}
/* Darken overlay only on the home hero for readability over video */
.hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.55)) !important; }
.hero-inner h1 { color: #ffffff; }
.hero-inner p { color: #dbd5dd; }
.hero-logo { width: clamp(260px, 32vw, 420px); margin: 0 auto var(--space-3); filter: drop-shadow(0 10px 30px rgba(0,0,0,0.45)); }

@media (min-width: 1200px) {
  .hero-video { transform: scale(1.18); }
}

/* Presentation tweaks */
#presentation-title + .section-subtitle { max-width: 900px; }

/* Harmonized headings for homepage presentation */
.presentation .center-content h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 6px 0;
  text-align: center;
}
.presentation .subline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.25;
  margin: 8px 0 4px 0;
  text-align: center;
}

/* Handwritten ink effects */
.ink-strike { position: relative; display: inline-block; }
.ink-strike::after {
  content: '';
  position: absolute;
  left: -6px; right: -6px;
  top: 58%;
  height: 0.18em;
  background: currentColor;
  opacity: 0.9;
  transform: rotate(-5deg);
  border-radius: 999px;
  filter: blur(0.4px);
}

.ink-underline { position: relative; display: inline-block; padding-bottom: 2px; }
.ink-underline::after {
  content: '';
  position: absolute;
  left: -8px; right: -8px;
  bottom: -4px;
  height: 0.17em;
  background: currentColor;
  opacity: 0.9;
  transform: rotate(-2deg);
  border-radius: 999px;
  filter: blur(0.3px);
}

/* Reduce spacing under the "Spaceman" title */
.presentation .title-spaceman { 
  margin-bottom: 8px;
  font-size: 10em;
  font-weight: bold;
}

/* Responsive pour title-spaceman */
@media screen and (max-width: 1024px) {
  .presentation .title-spaceman {
    font-size: 8em;
  }
}

@media screen and (max-width: 768px) {
  .presentation .title-spaceman {
    font-size: 6em;
    margin-top: -50px;
  }
}

@media screen and (max-width: 600px) {
  .presentation .title-spaceman {
    font-size: 5em;
    margin-top: -40px;
  }
}

@media screen and (max-width: 480px) {
  .presentation .title-spaceman {
    font-size: 4em;
    margin-top: -30px;
  }
}

@media screen and (max-width: 380px) {
  .presentation .title-spaceman {
    font-size: 3.5em;
    margin-top: -25px;
  }
}

/* Center the specific presentation texts container */
.presentation .center-content { text-align: center; margin-left: auto; margin-right: auto; }

/* Presentation (graphic cards) */
.presentation-grid { align-items: stretch; display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.person-card { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.person-media { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 4px solid #7A288A; }
.person-media img { width: 100%; height: 320px; object-fit: contain; padding: 18px; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--gradient-accent); color: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: 0.3px; }
.person-content { padding: 18px; }
.person-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.person-header h3 { margin: 0; font-family: var(--font-heading); font-size: 22px; }
.person-header .role { margin: 0; color: var(--color-accent-3); font-weight: 600; }
.person-content .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Override global card styles for homepage */
.person-content.card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff;
}
.person-content.card * {
  color: #ffffff;
}
.person-content.card .role {
  color: var(--color-accent-3);
}

@media (min-width: 900px) {
  /* Two-thirds layout by row */
  .person-card.left { grid-template-columns: 1fr 2fr; }
  .person-card.right { grid-template-columns: 2fr 1fr; }
  .person-media img { height: 380px; }
}

/* Responsive: inverser l'ordre pour Thomas sur mobile */
@media (max-width: 899px) {
  .person-card.left {
    display: flex;
    flex-direction: column;
  }
  .person-card.left .person-content {
    order: 1;
  }
  .person-card.left .person-media {
    order: 2;
  }
}

.person-card:hover .person-media { transform: translateY(-2px); transition: transform 0.25s ease; }

/* Intro section (below hero) */
.intro .section-title { 
  max-width: 1000px; 
  margin: 0 auto var(--space-3); 
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.3;
}
.intro .section-subtitle { max-width: 820px; margin: 0 auto var(--space-3); color: var(--color-accent-3); }

/* Responsive pour intro */
@media screen and (max-width: 1024px) {
  .intro .section-title {
    font-size: clamp(18px, 2.3vw, 30px);
  }
}

@media screen and (max-width: 768px) {
  .intro .section-title {
    font-size: clamp(17px, 2.1vw, 26px);
    max-width: 95%;
  }
}

@media screen and (max-width: 600px) {
  .intro .section-title {
    font-size: clamp(16px, 2vw, 24px);
  }
}

@media screen and (max-width: 480px) {
  .intro .section-title {
    font-size: clamp(14px, 1.8vw, 20px);
    line-height: 1.35;
  }
}

@media screen and (max-width: 380px) {
  .intro .section-title {
    font-size: clamp(13px, 1.6vw, 18px);
    line-height: 1.4;
  }
}

/* Portfolio */
.portfolio-grid .portfolio-item { overflow: hidden; text-decoration: none; color: inherit; }
.portfolio-grid .portfolio-item img { width: 100%; height: 220px; object-fit: cover; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.portfolio-item-info { padding: 14px 16px; }
.portfolio-grid .portfolio-item { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.portfolio-grid .portfolio-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* Homepage-only transparent header effect */
.home .header { background: transparent !important; border-bottom-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important; position: fixed; left: 0; right: 0; width: 100%; }
.home .header .brand img { opacity: 0; transition: opacity 0.35s ease; }
.home .header .brand span { opacity: 0; transition: opacity 0.35s ease; }
.home.scrolled .header { background: var(--color-accent) !important; border-bottom-color: rgba(255,255,255,0.08) !important; box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important; backdrop-filter: saturate(160%) blur(6px) !important; }
.home.scrolled .header .brand img { opacity: 1; }
.home.scrolled .header .brand span { opacity: 1; }
.home .header { position: fixed; left: 0; right: 0; width: 100%; }

/* CTA */
.cta .btn { margin-top: 10px; }
/* portfolio 2*/
.portfolio-section-photos {
  background-color: #341c44;
  width: 100%;
  padding: 60px 40px;
}

.portfolio-section-photos h2 {
  color: white;
  margin-bottom: 50px;
  text-align: center;
  font-size: 2.5em;
  font-weight: bold;
}

.grid-paysages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-paysages img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

.lien-conteneur-photo {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

.lien-conteneur-photo:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.photo-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: bold;
  color: white;
  background-color: rgba(68, 67, 70, 0.8);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.lien-conteneur-photo:hover .photo-hover {
  display: flex;
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: white;
  padding: 0;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.popup-close:hover {
  color: #ddd;
}

.popup-header {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 15px 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px 15px 0 0;
}

.popup-header h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  margin: 0;
}

.popup-logo {
  position: absolute;
  left: 30px;
  bottom: -30px;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 3;
}

.popup-body {
  padding: 50px 40px 40px 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.popup-content-left {
  flex: 1;
}

.popup-content-right {
  flex: 1.5;
}

.popup-body h2 {
  color: #6b46c1;
  margin-bottom: 20px;
  font-size: 1.8em;
  font-weight: bold;
}

.popup-body ul {
  list-style: none;
  padding: 0;
  margin: -10px;
}

.popup-body li {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 5px solid #6b46c1;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1em;
  color: #423f3f;
  line-height: 1.6;
  font-weight: normal;
}

.popup-body li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.popup-body li strong {
  color: #6b46c1;
  display: block;
  margin-bottom: 6px;
  font-size: 1.05em;
  font-weight: 700;
}

.popup-link-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.popup-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 70, 193, 0.5);
  background: linear-gradient(135deg, #8b5cf6 0%, #6b46c1 100%);
}

.popup-body p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #423f3f;
}
/* portfolio2 */
/* base de control*/
.base-control {
  position: relative;
  background-image: url('images/hd.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  min-height: 80vh;
  font-size: clamp(18px, 1.2vw + 14px, 22px);
}

.base-control h1 {
  font-weight: bold;
  font-size: clamp(36px, 3.8vw, 56px);
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

.base-control h2 {
  font-weight: bold;
  font-size: clamp(24px, 2.6vw, 36px);
  color: white;
  text-align: center;
  margin-bottom: 60px;
}

.case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.case > div {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 25px;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.violet {
  background-color: rgba(115, 96, 126, 0.85);
}

.claire {
  background-color: rgba(149, 133, 159, 0.85);
}

.gris {
  background-color: rgba(182, 172, 189, 0.85);
}

.case h2 {
  font-weight: bold;
  color: white;
  text-align: center;
  margin: 0 0 25px 0;
  font-size: clamp(22px, 2.2vw, 30px);
}

.case ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case li {
  font-weight: 600;
  color: white;
  text-align: left;
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
}

.case li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: white;
  font-weight: bold;
}

/* Responsive Base Control */
@media screen and (max-width: 1130px) {
  .base-control {
    background-size: 120%;
    background-position: center;
  }
}

@media screen and (max-width: 1024px) {
  .base-control {
    padding: 50px 20px;
    background-size: 140%;
    background-position: center;
  }
  
  .case {
    gap: 30px;
    max-width: 900px;
  }
  
  .case > div {
    padding: 25px 20px;
  }
}

@media screen and (max-width: 900px) {
  .base-control {
    background-size: 180%;
    background-position: center left;
  }
}

/* iPad Pro et tablettes */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .base-control {
    min-height: auto;
    background-size: 200%;
    background-position: center left;
    padding: 40px 20px;
  }
  
  .base-control h1 {
    font-size: clamp(32px, 3.5vw, 50px);
  }
  
  .base-control h2 {
    margin-bottom: 38px;
    font-size: clamp(22px, 2.4vw, 34px);
  }
  
  .case {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 650px;
  }
  
  .case > div {
    padding: 20px 18px;
  }
  
  .case h2 {
    margin-bottom: 16px;
    font-size: clamp(21px, 2.1vw, 28px);
  }
  
  .case li {
    margin-bottom: 9px;
    font-size: clamp(15px, 1.3vw, 19px);
  }
}

@media screen and (max-width: 768px) {
  .base-control {
    padding: 35px 20px;
    min-height: auto;
    background-size: 220%;
    background-position: center left;
  }
  
  .base-control h1 {
    font-size: clamp(30px, 3.2vw, 48px);
  }
  
  .base-control h2 {
    margin-bottom: 35px;
    font-size: clamp(20px, 2.2vw, 32px);
  }
  
  .case {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }
  
  .case > div {
    padding: 20px 18px;
  }
  
  .case h2 {
    margin-bottom: 15px;
    font-size: clamp(20px, 2vw, 26px);
  }
  
  .case li {
    margin-bottom: 8px;
    font-size: clamp(14px, 1.2vw, 18px);
  }
}

@media screen and (max-width: 600px) {
  .base-control {
    padding: 30px 15px;
    background-size: 280%;
    background-position: center left;
  }
  
  .case {
    gap: 18px;
  }
  
  .case > div {
    padding: 18px 16px;
  }
}

@media screen and (max-width: 480px) {
  .base-control {
    padding: 22px 15px;
    background-size: 400%;
    background-position: center left;
  }
  
  .base-control h1 {
    margin-bottom: 10px;
    font-size: clamp(24px, 2.6vw, 38px);
  }
  
  .base-control h2 {
    margin-bottom: 22px;
    font-size: clamp(17px, 1.9vw, 26px);
  }
  
  .case {
    gap: 14px;
  }
  
  .case > div {
    padding: 15px 13px;
    border-radius: 15px;
  }
  
  .case h2 {
    font-size: clamp(17px, 1.7vw, 23px);
    margin-bottom: 12px;
  }
  
  .case li {
    padding-left: 16px;
    margin-bottom: 5px;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.4;
  }
}

/* Très petits mobiles (344x882, 360x740) */
@media screen and (max-width: 380px) {
  .base-control {
    padding: 20px 12px;
    background-size: 450%;
    background-position: center left;
  }
  
  .base-control h1 {
    margin-bottom: 8px;
    font-size: clamp(22px, 2.4vw, 35px);
  }
  
  .base-control h2 {
    margin-bottom: 20px;
    font-size: clamp(16px, 1.8vw, 24px);
  }
  
  .case {
    gap: 12px;
  }
  
  .case > div {
    padding: 14px 12px;
    border-radius: 12px;
  }
  
  .case h2 {
    font-size: clamp(16px, 1.6vw, 21px);
    margin-bottom: 10px;
  }
  
  .case li {
    padding-left: 15px;
    margin-bottom: 4px;
    font-size: clamp(11px, 0.95vw, 14px);
    line-height: 1.35;
  }
}
/* base de control*/
/* section présentation*/
.presentation h1{
  font-weight: bold;
  font-size: 10em;
  margin-top: -70px;
}

.presentation {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    margin-top: -40px;
    padding: 80px 20px;
    position: relative;
}

.presentation-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-center {
    text-align: center;
    margin: 50px auto;
    margin-bottom: 80px;
}

.text-center h2 {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
}

/* Responsive pour .text-center h2 */
@media screen and (max-width: 1024px) {
  .text-center h2 {
    font-size: 1.8em;
  }
}

@media screen and (max-width: 768px) {
  .text-center h2 {
    font-size: 1.5em;
  }
}

@media screen and (max-width: 600px) {
  .text-center h2 {
    font-size: 1.3em;
  }
}

@media screen and (max-width: 480px) {
  .text-center h2 {
    font-size: 1.1em;
    line-height: 1.4;
  }
}

@media screen and (max-width: 380px) {
  .text-center h2 {
    font-size: 0.95em;
    line-height: 1.5;
  }
}

.text-center h3 {
  font-size: 2em;
  font-weight: 900;
  margin-bottom: 20px;
}

.images-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-top: -20%;
}

.duo-image {
    width: 25vw;
    height: auto;
    max-width: 300px;
}

.etape-3-image {
    width: 12vw;
    height: auto;
    max-width: 300px;
    margin-right: 6%;
}
/* section présentation*/
/* accueil introduction*/
.center-content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 5%;
  margin-top: -5%;
}

.center-content .astronautes {
  font-family: "Handlee", cursive;
  font-weight: 400;
  font-style: italic;
  font-size: 2.7em;
  margin-left: 55%;
}

.center-content h1 {
  font-weight: bold;
  font-size: 2.7em;
  margin: 0.5rem 0;
  line-height: 1.2;
}

.center-content h3 {
  font-weight: bold;
  font-size: 2.2em;
  margin-top: 10%;
  line-height: 1.2;
}

.marketing-red {
  color: #e74c3c;
}

.webdesign-blue {
  color: #3498db;
}

/* Responsive pour center-content */
@media screen and (max-width: 1024px) {
  .center-content .astronautes {
    font-size: 2.4em;
    margin-left: 50%;
  }
  
  .center-content h1 {
    font-size: 2.4em;
  }
  
  .center-content h3 {
    font-size: 2em;
  }
}

@media screen and (max-width: 768px) {
  .center-content {
    margin-bottom: 8%;
    margin-top: -3%;
  }
  
  .center-content .astronautes {
    font-size: 2em;
    margin-left: 45%;
    margin-bottom: 10px;
  }
  
  .center-content h1 {
    font-size: 2em;
    margin: 0.4rem 0;
  }
  
  .center-content h3 {
    font-size: 1.7em;
    margin-top: 8%;
  }
}

@media screen and (max-width: 600px) {
  .center-content .astronautes {
    font-size: 1.8em;
    margin-left: 40%;
    margin-bottom: 8px;
  }
  
  .presentation .center-content h1  {
    font-size: 1.45em;
  }
  
  .center-content h3 {
    font-size: 1.5em;
  }
}

@media screen and (max-width: 480px) {
  .center-content {
    max-width: 95%;
    margin-bottom: 10%;
  }
  
  .center-content .astronautes {
    font-size: 1.5em;
    margin-left: 55%;
    margin-bottom: 5px;
  }
  
  .presentation .center-content h1 {
    font-size: 1.08em;
    margin: 0.3rem 0;
    line-height: 1.3;
  }
  
  .center-content h3 {
    font-size: 1.3em;
    margin-top: 6%;
  }
}

@media screen and (max-width: 380px) {
  .presentation .center-content .astronautes {
    font-size: 1.3em;
    margin-left: 55%;
  }
  
  .presentation .center-content h1 {
    font-size: 0.95em;
  }
  
  .presentation .center-content h3 {
    font-size: 1.1em;
  }
}
/* accueil introduction*/
/* contact */
.contact-astronaut {
  background-image: url('images/noir.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;
  padding: 60px 20px;
  min-height: 80vh;
  position: relative;
}

.contact-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-left {
  position: absolute;
  left: -8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.contact-left img {
  width: 25vw;
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.contact-right {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact-right h2 {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-right .section-subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #b7acbd;
  margin-bottom: 50px;
}

.contact-form {
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-fields input {
  padding: 18px 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background-color: rgba(52, 28, 68, 0.6);
  backdrop-filter: blur(10px);
  font-size: 1em;
  color: white;
  font-weight: 600;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-fields input:focus {
  outline: none;
  border-color: #73607e;
  background-color: rgba(52, 28, 68, 0.8);
}

.form-fields input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.message-field textarea {
  width: 100%;
  height: 222px;
  padding: 18px 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background-color: rgba(52, 28, 68, 0.6);
  backdrop-filter: blur(10px);
  font-size: 1em;
  color: white;
  font-weight: 600;
  resize: none;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.message-field textarea:focus {
  outline: none;
  border-color: #73607e;
  background-color: rgba(52, 28, 68, 0.8);
}

.message-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Responsive Contact Section */
@media screen and (max-width: 1130px) {
  .contact-left {
    left: -5%;
  }
  
  .contact-left img {
    width: 20vw;
    max-width: 280px;
  }
  
  .contact-form {
    max-width: 750px;
    gap: 30px;
  }
}

@media screen and (max-width: 1024px) {
  .contact-left {
    left: -5%;
    position: static;
    transform: none;
    margin-bottom: 30px;
  }
  
  .contact-left img {
    width: 50vw;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  
  .contact-right h2 {
    margin-bottom: 10px;
  }
  
  .contact-right .section-subtitle {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 480px) {
  .contact-astronaut {
    padding: 30px 15px;
  }
  
  .form-fields input,
  .message-field textarea {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  
  .message-field textarea {
    height: 180px;
  }
  
  .row.two {
    grid-template-columns: 1fr;
  }
}

/* Button states for contact form */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #341C44 0%, #533d60 40%, #73607e 100%);
  color: white;
  padding: 30px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.success-message .checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.2);
  border: 3px solid #4CAF50;
  margin: 0 auto 20px;
  position: relative;
  animation: checkmark-pop 0.4s ease-out;
}

.success-message .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #4CAF50;
  font-weight: bold;
}

@keyframes checkmark-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-message h3 {
  font-size: 1.5em;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.success-message p {
  font-size: 1em;
  margin: 0;
  opacity: 0.9;
}
