/* ===============================================
   Custom Portfolio Stylesheet (Updated)
   Palette: Primary #5D6B74 | Accent #00674F | Muted #98A0A6
   Author: DevName
   =============================================== */

:root {
  --primary: #5D6B74;
  --accent: #00674F;
  --white: #fff;
  --muted: #98a0a6;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* ===============================================
   Base & Typography
   =============================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--primary);
  background: linear-gradient(180deg, #fbfdff, #fff);
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.3px;
}

p, li, small {
  color: var(--primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--accent);
}
a:hover {
  color: #004c3a;
}

/* ===============================================
   Navbar
   =============================================== */
.navbar {
  font-weight: 500;
}
.navbar-brand {
  color: var(--accent) !important;
}
.nav-link {
  color: var(--primary) !important;
  margin-right: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(0, 103, 79, 0.08);
}

/* ===============================================
   Hero Section
   =============================================== */
#home {
  min-height: 90vh;
}
#home h1 {
  font-size: 2.4rem;
}
#home .lead {
  font-size: 1.1rem;
  color: var(--muted);
}
#home .btn {
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.6rem 1.4rem;
}

/* --- Buttons --- */
.btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #004d3a;
  border-color: #004d3a;
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* ===============================================
   Cards & Hero Card
   =============================================== */
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.3s;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card img {
  object-fit: cover;
  height: 220px;
}
.card:hover {
  box-shadow: var(--shadow-md);
}

/* ===============================================
   Section Headers
   =============================================== */
.section-head h2 {
  font-size: 2rem;
  color: var(--primary);
}
.section-head p {
  color: var(--muted);
  font-size: 1rem;
}

/* ===============================================
   Skills Section
   =============================================== */
#skills .border {
  border-color: rgba(0, 0, 0, 0.05) !important;
}
#skills .shadow-sm {
  transition: transform 0.2s ease;
}
#skills .shadow-sm:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md) !important;
}

/* ===============================================
   Packages Section
   =============================================== */
.price {
  font-size: 1.25rem;
  color: var(--accent);
}
#packages .card {
  transition: transform 0.2s ease;
}
#packages .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ===============================================
   Forms
   =============================================== */
form .form-control {
  border-radius: var(--radius);
  border: 1px solid #d4d8da;
  transition: border-color 0.2s, box-shadow 0.2s;
}
form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(0, 103, 79, 0.2);
}

/* ===============================================
   Contact Section
   =============================================== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
}

/* ===============================================
   Footer
   =============================================== */
footer a {
  color: var(--white);
  transition: opacity 0.2s;
}
footer a:hover {
  opacity: 0.7;
}

/* ===============================================
   Lightbox
   =============================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ===============================================
   Utilities
   =============================================== */
.bg-light {
  background-color: #f9fafb !important;
}
.text-muted {
  color: var(--muted) !important;
}
html {
  scroll-behavior: smooth;
}

/* ===============================================
   Quote Modal
   =============================================== */
.quote-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 40px 10px;
  animation: fadeIn 0.25s ease-out;
}

.quote-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

.quote-close {
  position: absolute;
  top: 8px;
  right: 14px;
  border: none;
  background: none;
  font-size: 28px;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}
.quote-close:hover {
  color: var(--accent);
}

.quote-msg {
  margin-top: 10px;
}