/* ============================================================
   HABEEB KARADAN — Personal Website Stylesheet
   ============================================================
   Sections in this file (use Ctrl+F to jump):
   1. Reset & Base
   2. Layout helpers
   3. Navigation
   4. Hero
   5. Sections & headings
   6. About
   7. Cards grid
   8. Interests
   9. Utilities teaser
   10. Footer
   11. Responsive (mobile)
   ============================================================ */


/* ============================================================
   1. RESET & BASE
   A minimal reset so every browser starts from the same place.
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Smooth scrolling when clicking nav links */
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;       /* dark slate — easier on the eyes than pure black */
  background: #ffffff;
  line-height: 1.6;
}


/* ============================================================
   2. LAYOUT HELPERS
   .container centres content and caps the max width.
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================================
   3. NAVIGATION
   Sticks to the top, dark background, sky-blue accent.
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);   /* subtle blur behind the nav */
  z-index: 100;
  padding: 1rem 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HK monogram logo */
.nav-logo {
  color: #38bdf8;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #38bdf8;
}

/* Greyed-out link for pages not built yet */
.nav-links .nav-disabled {
  color: #475569;
  cursor: default;
  pointer-events: none;
}


/* ============================================================
   4. HERO
   Full-width banner: dark gradient, centred text.
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: white;
  padding: 7rem 0 5rem;
  text-align: center;
}

.hero-greeting {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

/* clamp() makes the name scale nicely from mobile to desktop */
.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  /* Gradient text effect */
  background: linear-gradient(90deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.1rem;
  color: #38bdf8;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.hero-location {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
}

.hero-tagline {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Call-to-action button */
.btn-primary {
  display: inline-block;
  background: #0ea5e9;
  color: white;
  padding: 0.75rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #0284c7;
  transform: translateY(-2px);
}


/* ============================================================
   5. SECTIONS & HEADINGS
   .section adds breathing room above/below content.
   .section-alt gives an off-white background for contrast.
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #f8fafc;
}

/* Section heading with a coloured underline accent */
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2rem;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #0ea5e9;
  border-radius: 2px;
  margin-top: 0.5rem;
}


/* ============================================================
   6. ABOUT
   Text paragraphs and keyword pill tags.
   ============================================================ */
.about-text {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 820px;
}

/* Pill-shaped keyword tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}


/* ============================================================
   7. CARDS GRID
   Responsive grid — fills 3 columns on desktop, stacks on mobile.
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.card p {
  color: #64748b;
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Muted style for "coming soon" cards */
/* Clickable card — used for utility links */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #0ea5e9;
}

.card-muted {
  opacity: 0.55;
  cursor: default;
}

.card-muted:hover {
  transform: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}


/* ============================================================
   8. INTERESTS
   Two columns: work vs personal, with arrow-prefixed list items.
   ============================================================ */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.interest-group h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.1rem;
}

.interest-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.interest-group li {
  color: #475569;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.97rem;
}

/* Sky-blue arrow bullet */
.interest-group li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-weight: 600;
}


/* ============================================================
   9. UTILITIES TEASER
   ============================================================ */
.teaser-text {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

/* "Coming Soon" amber badge next to the heading */
.badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ============================================================
   10. FOOTER
   Dark background matching the nav, copyright + LinkedIn link.
   ============================================================ */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer p {
  font-size: 0.9rem;
}

.footer-link {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.75;
}


/* ============================================================
   11. RESPONSIVE — MOBILE
   Adjustments for screens narrower than 640px.
   ============================================================ */
@media (max-width: 640px) {
  .nav-links {
    gap: 1.1rem;
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
