/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   GLOBAL
========================= */
body {
  font-family: 'Space Grotesk', sans-serif;
  color: #FFFFFF;
  line-height: 1.6;
  background:
    linear-gradient(rgba(11,11,15,0.85), rgba(11,11,15,0.85)),
    url('assets/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: background-position;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px;
  gap: 80px;
}

.hero-content {
  max-width: 640px;
}

.tag {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8B5CF6;
  margin-bottom: 12px;
}

.name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #E5E7EB;
}

h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(90deg, #8B5CF6, #6366F1, #38BDF8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 18px;
  color: #9CA3AF;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* =========================
   BUTTONS
========================= */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #0B0B0F;
  background: linear-gradient(90deg, #8B5CF6, #38BDF8);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 30px rgba(139, 92, 246, 0.65),
    0 0 60px rgba(56, 189, 248, 0.4);
}

.linkedin-cta {
  background: linear-gradient(90deg, #0A66C2, #38BDF8);
  color: #FFFFFF;
}

/* =========================
   HERO VISUAL
========================= */
.hero-visual {
  width: 380px;
  height: 380px;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle,
    rgba(139,92,246,0.45),
    rgba(56,189,248,0.25),
    transparent 70%
  );
  filter: blur(70px);
  z-index: -1;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 110px 120px;
}

.section.compact {
  padding-top: 60px;
}

.section-title {
  font-size: 42px;
  margin-bottom: 56px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 32px;
  color: #9CA3AF;
  font-size: 18px;
}

/* =========================
   CARDS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card {
  padding: 32px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

/* =========================
   PURPLE TEXT LINKS
========================= */
.card-link {
  color: #8B5CF6 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: 600;
}

.card-link:hover {
  text-decoration: underline;
}

/* =========================
   CONTACT – FIXED LAYOUT
========================= */
.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-section > * {
  text-align: center;
}

/* Wrapper behavior */
.contact-section {
  flex-direction: column;
  gap: 28px;
}

/* Title */
.contact-section .section-title {
  margin-bottom: 12px;
}

/* Intro text */
.contact-section .section-intro {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
}

/* Form */
.contact-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bigger textarea */
.contact-form textarea {
  width: 100%;
  min-height: 200px;
  padding: 22px 24px;
  font-size: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  margin-bottom: 32px;
}

/* Buttons */
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   MOBILE FIXES
========================= */
@media (max-width: 768px) {

  body {
    background-attachment: scroll !important;
    will-change: auto;
  }

  .hero {
    flex-direction: column;
    padding: 80px 20px;
    gap: 48px;
    text-align: center;
  }

  h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    width: 220px;
    height: 220px;
  }

  .section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .section-intro {
    font-size: 16px;
  }

  .cards {
    gap: 20px;
  }

  .card {
    padding: 24px;
  }

  .contact-actions {
     flex-direction: column;
     align-items: center;   /* TRUE centering */
     gap: 16px;
   }

   .contact-actions .cta {
     width: auto;           /* stop stretching */
     min-width: 220px;      /* consistent size */
     max-width: 320px;
   }

   .contact-section {
    padding: 80px 20px;
  }

  .contact-form textarea {
    min-height: 160px;
  }
}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }

  .cta {
    width: 100%;
  }
}

/* =========================
   iOS SAFETY
========================= */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll !important;
  }
}
