/* Dinesh Prasad Sah – Portfolio
   Visiting card palette: white, dark charcoal, cyan accent */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-dark: #1a1a1a;
  --bg-dark-alt: #2d2d2d;
  --bg-light: #f8f9fa;
  --accent-cyan: #00bcd4;
  --accent-cyan-dark: #00acc1;
  --text-light: #f5f5f5;
  --text-muted: #b0b0b0;
  --text-dark: #1a1a1a;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --container: min(92vw, 1100px);
  --header-padding: 1rem 1.25rem;
  --section-padding: 4rem 1.5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-dark);
}

/* Layout – header matches logo background (#1a1a1a) for seamless look */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(0, 188, 212, 0.15);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--header-padding);
  gap: 1rem;
  position: relative;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.site-logo span {
  color: var(--accent-cyan);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent-cyan);
  background: rgba(0, 188, 212, 0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-dark-alt);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 188, 212, 0.15);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* Curved section divider */
.section-curve {
  position: relative;
  height: 60px;
  margin: 0;
  overflow: hidden;
}

.section-curve svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: var(--bg-dark);
}

.section-curve.light-below svg {
  fill: var(--bg-light);
}

.section-curve.dark-below svg {
  fill: var(--bg-dark);
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  background: linear-gradient(165deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 188, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero .subheadline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlights list */
.highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.intro-text {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1rem;
}

/* CTAs */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--accent-cyan-dark);
  color: var(--text-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 188, 212, 0.12);
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: var(--section-padding);
}

/* Centered content (e.g. enquiry form) */
.wrap--center {
  text-align: center;
}

.section-title--center,
.section-lead--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.enquiry-form {
  max-width: 520px;
  margin: 0 auto 2rem;
  text-align: left;
}

.form-message--center {
  margin-left: auto;
  margin-right: auto;
}

section.light {
  background: var(--bg-light);
  color: var(--text-dark);
}

section.light h2 {
  color: var(--text-dark);
}

section.light .section-lead,
section.light .text-muted {
  color: #555;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.section-title .accent {
  color: var(--accent-cyan);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 640px;
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards.three-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-dark-alt);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition), box-shadow var(--transition);
}

section.light .card {
  background: #fff;
  border-color: #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card:hover {
  border-color: rgba(0, 188, 212, 0.3);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.08);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--accent-cyan);
}

section.light .card h3 {
  color: var(--accent-cyan-dark);
}

.card .role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

section.light .card .role {
  color: #666;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

section.light .card p {
  color: #444;
}

/* Bullet list */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}

.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

section.light .bullet-list li::before {
  color: var(--accent-cyan-dark);
}

/* About page blocks */
.block {
  margin-bottom: 2.5rem;
}

.block:last-child {
  margin-bottom: 0;
}

.block h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--accent-cyan);
}

section.light .block h2 {
  color: var(--accent-cyan-dark);
}

.block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

section.light .block p {
  color: #444;
}

.quote {
  font-style: italic;
  border-left: 4px solid var(--accent-cyan);
  padding-left: 1.25rem;
  margin: 1rem 0;
  color: var(--text-muted);
}

section.light .quote {
  color: #555;
  border-left-color: var(--accent-cyan-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(0, 188, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: var(--bg-dark-alt);
  color: var(--text-light);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

section.light .form-group input,
section.light .form-group textarea {
  background: #fff;
  border-color: #ddd;
  color: var(--text-dark);
}

section.light .form-group input:focus,
section.light .form-group textarea:focus {
  border-color: var(--accent-cyan-dark);
}

.form-message {
  max-width: 520px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.form-message--success {
  background: rgba(0, 188, 212, 0.15);
  border: 1px solid rgba(0, 188, 212, 0.4);
  color: var(--text-light);
}

.form-message--error {
  background: rgba(200, 80, 80, 0.15);
  border: 1px solid rgba(200, 80, 80, 0.5);
  color: #f5b0b0;
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

section.light .form-note {
  color: #666;
}

/* Footer */
.site-footer {
  background: var(--bg-dark-alt);
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(0, 188, 212, 0.15);
  text-align: center;
}

.site-footer .wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer .brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.site-footer .brand span {
  color: var(--accent-cyan);
}

.site-footer .tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Page title (for inner pages) */
.page-hero {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark-alt) 0%, var(--bg-dark) 100%);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-light);
}

.page-hero .lead {
  color: var(--text-muted);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.profile-photo {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(0, 188, 212, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Fade-in (optional enhancement) */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive: all devices ========== */

/* Prevent horizontal scroll */
html {
  overflow-x: hidden;
}

body {
  min-width: 0;
}

/* Small phones (portrait) */
@media (max-width: 480px) {
  :root {
    --header-padding: 0.75rem 1rem;
    --section-padding: 2.5rem 1rem;
  }

  .site-logo {
    font-size: 1rem;
  }

  .site-logo img {
    height: 32px;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subheadline {
    font-size: 1rem;
  }

  .highlights {
    padding-left: 0.5rem;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .section-curve {
    height: 40px;
  }

  .cards {
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card h3 {
    font-size: 1rem;
  }

  .page-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .page-hero .lead {
    font-size: 0.9375rem;
  }

  .profile-photo {
    max-width: 160px;
    margin-bottom: 1.25rem;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .enquiry-form {
    max-width: 100%;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 16px; /* prevents zoom on focus in iOS */
  }

  .btn {
    padding: 0.875rem 1.25rem;
    width: 100%;
    max-width: 100%;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .site-footer .brand {
    font-size: 0.9375rem;
  }
}

/* Phones (landscape) / large phones */
@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --section-padding: 3rem 1.25rem;
  }

  .site-logo img {
    height: 36px;
  }

  .hero {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .cta-group .btn {
    min-width: 140px;
  }

  .enquiry-form {
    max-width: 100%;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --container: min(94vw, 720px);
  }

  .main-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }

  .section-lead {
    max-width: 100%;
  }

  .cards.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .cards {
    gap: 1.5rem;
  }
}

/* Large desktop – cap container */
@media (min-width: 1200px) {
  :root {
    --container: 1100px;
  }
}

/* Touch-friendly: ensure tap targets are at least 44px */
@media (pointer: coarse) {
  .main-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
