:root {
  --bg-color: #0b0d10;
  /* Deep charcoal/navy */
  --text-color: #f0f0f0;
  --accent-color: #fff;
  --secondary-text: #9ca3af;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --page-padding: 5vw;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(30, 41, 59, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(15, 23, 42, 0.4) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Disable scroll on desktop */
}

/* Navbar */
header {
  padding: 2rem var(--page-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-color);
}

/* Landing Page Hero Layout */
.container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 var(--page-padding);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  min-height: 100vh;
}

@media (min-width: 900px) {
  .container {
    grid-template-columns: 1.2fr 1fr;
    /* Give text a bit more space, allow overlap visual */
    gap: 0;
    /* Remove gap completely to merge sections */
  }
}

/* Hero Text */
.hero-text {
  z-index: 2;
  padding-top: 4rem;
  /* Offset for navbar */
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-text h1 span {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--secondary-text);
  font-weight: 400;
  margin-top: 1rem;
  letter-spacing: normal;
}

.hero-text .lead {
  color: var(--secondary-text);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.text-highlight {
  color: inherit;
  font-style: italic;
  font-weight: 500;
}

.hero-text .cta-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.contact-button.outline {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-button.outline:hover {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.skills-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-text);
  margin-bottom: 1rem;
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text-color);
  transition: all 0.2s;
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.secondary-link {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.secondary-link:hover {
  color: var(--accent-color);
}

/* Hero Image */
.image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Changed from flex-end to center */
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Ambient Glow */
.image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  /* Expanded to surround */
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  filter: blur(50px);
  z-index: -1;
  border-radius: 50%;
}

.profile-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  /* Mask to fade out the bottom significantly, and slightly the left side */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);

  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

footer {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  z-index: 10;
}

@media (max-width: 900px) {
  body {
    height: auto;
    overflow: auto;
    /* Re-enable scroll on mobile */
  }

  .brand {
    display: none;
  }

  /* Optional: Hide brand on mobile if taking space, or keep it */
  .brand {
    display: block;
  }

  .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
    gap: 2rem;
  }

  .hero-text {
    padding-top: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-text .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text .cta-group {
    justify-content: center;
  }

  .image-wrapper {
    height: auto;
    margin-top: 0;
    margin-bottom: 1rem;
    order: -1;
  }

  .profile-image {
    max-width: 80%;
  }

  footer {
    position: relative;
    margin-top: 4rem;
  }
}