/* ── Root Variables ───────────────────────────────────────── */
:root {
  --gold:        #FFC107;
  --gold-light:  #fff3cd;
  --gold-pale:   #fffef7;
  --gold-deep:   #e6a800;
  --dark:        #1a1a2e;
  --text-dark:   #2c2c2c;
  --text-muted:  #5a5a5a;
  --white:       #ffffff;
  --shadow-sm:   0 4px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.13);
  --shadow-lg:   0 16px 40px rgba(0,0,0,0.18);
  --radius:      14px;
  --transition:  0.3s ease;
}

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

body {
  font-family: "Sour Gummy", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 18px;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--white);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background-color: var(--gold) !important;
  box-shadow: 0 2px 16px rgba(255, 193, 7, 0.35);
}

.navbar h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: color var(--transition);
}

.dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark);
  transition: width var(--transition);
  border: none;
  margin: 0;
  vertical-align: unset;
}

.dropdown-toggle:hover::after {
  width: 100%;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}

@keyframes glowPulse {
  0%   { box-shadow: 0 0 18px 4px rgba(255, 193, 7, 0.35), 0 0 0 6px rgba(255, 193, 7, 0.1); }
  50%  { box-shadow: 0 0 36px 10px rgba(255, 193, 7, 0.55), 0 0 0 6px rgba(255, 193, 7, 0.2); }
  100% { box-shadow: 0 0 18px 4px rgba(255, 193, 7, 0.35), 0 0 0 6px rgba(255, 193, 7, 0.1); }
}

.fade-in-up {
  animation: fadeInUp 0.75s ease both;
}

.fade-in-up-delay-1 { animation: fadeInUp 0.75s 0.15s ease both; }
.fade-in-up-delay-2 { animation: fadeInUp 0.75s 0.3s  ease both; }
.fade-in-up-delay-3 { animation: fadeInUp 0.75s 0.45s ease both; }

/* ── Homepage ─────────────────────────────────────────────── */
.homepage-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(160deg, #fffff8 0%, #fffde6 50%, #fff8cc 100%);
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.homepage-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.text-block {
  flex: 1;
  padding: 1.5rem;
}

.text-block .badge-label {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.text-block h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--dark);
}

.text-block p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.image-block {
  flex: 2;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.homepage-image {
  display: block;
  width: 480px;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(255, 193, 7, 0.45));
  animation: float 4s ease-in-out infinite;
}

/* ── Skills Cards ─────────────────────────────────────────── */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.col {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.skills-section {
  background: linear-gradient(160deg, #fffff8 0%, #fffde6 60%, #fff8cc 100%);
  min-height: 100vh;
  padding: 3rem 1.5rem;
}

.skills-heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.skills-subheading {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.3px;
}

.card {
  background: linear-gradient(145deg, var(--gold-pale), var(--gold-light));
  border: 1px solid #f5d76e;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--gold-deep);
  border-color: var(--gold-deep);
  background: linear-gradient(145deg, #fff9e0, #fff3b0);
}

.card img {
  width: 45%;
  height: auto;
  display: block;
  margin: 1.5rem auto 0.75rem auto;
}

.card .list-group {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-y: auto;
  max-height: 220px;
}

.card ul.list-group {
  flex-grow: 1;
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  min-height: 3rem;
  padding: 0 1rem;
}

.list-group-item {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border-color: rgba(245, 215, 110, 0.4);
  color: var(--text-muted);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-section {
  background: linear-gradient(160deg, #fffff8 0%, #fffde6 50%, #fff8cc 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 4rem;
}

.contact-header {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.contact-subheader {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 10vw, 160px);
  height: clamp(90px, 10vw, 160px);
  border-radius: 50%;
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.contact-btn:hover {
  transform: translateY(-8px) scale(1.07);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.contact-btn.email {
  background: linear-gradient(135deg, #f9a826, #f5c518);
}

.contact-btn.github {
  background: linear-gradient(135deg, #2b2b2b, #444);
}

.contact-btn.linkedin {
  background: linear-gradient(135deg, #0077b5, #00a0dc);
}

.d-flex.gap-5 {
  gap: clamp(1.5rem, 4vw, 5rem) !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 1920px) {
  .homepage-content {
    max-width: 2200px;
    gap: 4rem;
  }
  .text-block h1   { font-size: 3.2rem; }
  .text-block p    { font-size: 1.3rem; }
}

@media (min-width: 2560px) {
  .homepage-content {
    max-width: 2800px;
    gap: 5rem;
  }
  .text-block h1   { font-size: 4.5rem; }
  .text-block p    { font-size: 1.6rem; }
  .homepage-image  { max-height: 80vh; }
}

@media (max-width: 1024px) {
  .homepage-content {
    flex-direction: column;
    gap: 2rem;
  }
  .image-block {
    order: -1;
  }
}

@media (max-width: 576px) {
  .text-block h1 { font-size: 1.8rem; }
  .text-block p  { font-size: 1rem; }
}
