:root {
  --primary: #cd3700;
  /* Terracotta red */
  --primary-light: #ff6b4a;
  /* Lighter variant */
  --dark: #2D3436;
  --light: #F9F5F3;
  /* Warm off-white */
  --shadow: 0 8px 24px rgba(205, 55, 0, 0.12);
  --shadow-hover: 0 12px 28px rgba(205, 55, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1,
h2,
h3,
.title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.subtitle {
  line-height: inherit;
}

/* ===== Rounded Corners ===== */
.hero,
.project-featured,
.project-card,
.writing-card,
.profile-pic,
.project-screenshot,
.tag {
  border-radius: 16px !important;
}

/* ===== Soft Shadows ===== */
.has-soft-shadow {
  box-shadow: var(--shadow) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.has-soft-shadow:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}

/* ===== Primary Color Integration ===== */
.has-text-primary {
  color: var(--primary) !important;
}

.button {
  border-radius: 8px !important;
}

.button.is-primary {
  color: white;
  background-color: var(--primary) !important;
  border: none !important;
}

.button.is-primary:hover {
  background-color: var(--primary-light) !important;
}

.tag.is-primary {
  background-color: var(--primary) !important;
  color: white !important;
}

/* ===== Profile Image Border ===== */
.profile-container {
  position: relative;
  width: 100%;
}

.profile-pic {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.profile-border {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  z-index: -1;
  transition: all 0.3s ease;
}

.profile-container:hover .profile-border {
  top: -8px;
  left: -8px;
}

/* ===== Project Cards ===== */
.project-featured {
  background: white;
  padding: 3rem;
  box-shadow: var(--shadow);
  margin-top: -3rem;
}

.project-title-container {
    display: flex;          /* Enable flexbox */
    align-items: center;    /* Vertically center items */
    gap: 16px;              /* Add space between items */
}

.app-icon {
  height: 64px;
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.project-screenshot {
  position: relative;
  overflow: hidden;
}

.screenshot-border {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  z-index: -1;
  transition: all 0.3s ease;
}

.project-screenshot:hover .screenshot-border {
  top: -8px;
  right: -8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  margin-bottom: 0px !important;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.image.is-16by9 img {
  object-fit: contain;
  object-position: bottom;
}

/* ===== Writing Cards ===== */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.writing-card {
  background: white;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.writing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.writing-link {
  color: var(--primary);
  font-weight: 500;
}

/* ===== Social Links ===== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer {
  padding-bottom: 3rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-body .columns {
    flex-direction: column-reverse;
  }

  .profile-pic {
    width: 70%;
    margin: 0 auto 2rem;
  }

  .project-featured {
    margin-top: 0;
    padding: 1.5rem;
  }
}