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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  padding: 0;
  font-family: "Inter", "Open Sans", "Roboto", sans-serif;
  color: #111;
  background: #fff;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  gap: 0;
  padding: 0;
}

html,
body {
  overflow: auto; /* still allows scrolling */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Chrome, Safari, Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}

/* --------------------
   Layout: Split Section
-------------------- */
.main-content {
  position: relative;
  display: grid;
  grid-template-columns: 45% 55%;
  justify-content: center;
  align-items: start;
  gap: 48px;
  height: 80vh;
  padding: 0 6vw;
  padding-top: 50px;
}

@media (max-width: 1600px) {
  .main-content {
    height: 100vh;
  }
}

@media (max-width: 1200px) {
  .main-content {
    height: 120vh;
  }
}

/* Background for left section */
.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: #e9ded3;
  z-index: -1;
}

/* --------------------
   Columns + Animations
-------------------- */
.left-col {
  grid-column: 1;
  position: relative;
  opacity: 0;
  transform: translateX(-60px);
  animation: slideInLeft 0.8s ease-out 0.2s forwards;
}

.right-col {
  grid-column: 2;
  position: relative;
  opacity: 0;
  transform: translateX(60px);
  animation: slideInRight 0.9s ease-out 0.4s forwards;
}

/* --------------------
   Profile Card
-------------------- */
.profile-card {
  width: 450px;
  height: 600px;
  max-width: 92%;
  margin: 10px 0px 0 auto;
  background: #fff;
  border: 1px solid #eadfd2;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12),
    0 28px 48px -18px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-self: end;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInZoom 0.6s ease-out 0.6s forwards;
}

/* --------------------
   Hero Card (Right Column)
-------------------- */
.hero-card {
  width: 700px;
  height: 600px;
  max-width: 80%;
  margin: 10px 0 0 0;
  padding: 32px;
  text-align: center;
  border-left: 4px solid #111;
  align-items: center;
}

/* --------------------
   Profile / Avatar
-------------------- */
.avatar {
  display: block;
  width: 250px;
  height: 250px;
  margin: 0px auto;
  border-radius: 50%;
  border: 6px solid #ead8c3;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInZoom 0.8s ease-out 0.7s forwards;
}

.name {
  font-size: 28px;
  line-height: 1.15;
  margin: 20px 0 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.underline {
  width: 56px;
  height: 4px;
  margin: 0px auto 40px;
  background: #0a5cff;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  animation: growIn 0.6s ease-out 1s forwards;
}

.role {
  margin: 8px 0 20px;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: #4b5563;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

/* --------------------
   Social Links
-------------------- */
.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 0;
  margin: 0;
  border-top: 1px solid #e6d9c9;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

.social-links a {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.facebook {
  background: #1877f2;
}
.linkedin {
  background: #0a66c2;
}
.upwork {
  background: #14a800;
}

/* --------------------
   Right Column Content
-------------------- */
.hero {
  font-size: clamp(25px, 8vw, 60px);
  line-height: 0.9;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.8s ease-out 0.8s forwards;
}

.tagline {
  margin: 0 0 10px;
  font-size: 22px;
  color: #2b2b2b;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1s forwards;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.cta-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #0a5cff;
  opacity: 0;
  transform: scale(0.8);
  animation: popIn 0.5s ease-out forwards;
}

.cta-row a:nth-child(1) {
  animation-delay: 1.2s;
}
.cta-row a:nth-child(2) {
  animation-delay: 1.35s;
}

.btn.primary {
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(10, 92, 255, 0.6);
  background: linear-gradient(to left, #0a5cff 50%, #fff 50%) right;
  background-size: 200%;
  transition: 0.5s ease-out;
  width: 130px;
}

.btn.primary:hover {
  background-position: left;
  color: #111;
  box-shadow: 0 12px 24px -10px rgba(10, 75, 191, 0.6);
  transform: translateY(-2px) scale(1.05);
}

.btn.ghost {
  color: #fff;
  background: linear-gradient(to left, #0a5cff 50%, #fff 50%) right;
  background-size: 200%;
  transition: 0.5s ease-out;
  width: 130px;
}

.btn.ghost:hover {
  background-position: left;
  color: #111;
  transform: translateY(-2px) scale(1.05);
}

.lead {
  line-height: 1.7;
  color: #000000;
  margin: 16px 0 8px 0;
  font-size: 14px;
  text-align: justify;
  text-indent: 20px;
  font-family: "Inter", "Open Sans", "Roboto", sans-serif;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

h2 {
  font-size: 24px;
  margin: 10px 0 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out 1.6s forwards;
}

/* --------------------
   Skills
-------------------- */
.skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  font-size: 14px;
  color: #000000;
  text-align: left;
}

.skills li {
  background: #f5f5f5;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.skills li:nth-child(1) {
  animation-delay: 1.8s;
}
.skills li:nth-child(2) {
  animation-delay: 1.9s;
}
.skills li:nth-child(3) {
  animation-delay: 2s;
}
.skills li:nth-child(4) {
  animation-delay: 2.1s;
}
.skills li:nth-child(5) {
  animation-delay: 2.2s;
}
.skills li:nth-child(6) {
  animation-delay: 2.3s;
}

/* --------------------
   Responsive
-------------------- */
@media (max-width: 1300px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0px;
    padding: 25px 16px;
    height: auto;
  }

  .main-content::before {
    width: 100%;
  }

  .left-col,
  .right-col {
    grid-column: 1;
    transform: none;
    opacity: 1;
    animation: none;
  }

  .profile-card,
  .hero-card {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    justify-self: stretch;
    border-radius: 14px;
    border: none;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .hero {
    font-size: clamp(28px, 9vw, 48px);
  }

  .lead {
    text-indent: 0;
  }

  .cta-row {
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }
}

/* --------------------
   Animations
-------------------- */
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes growIn {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
