
/* =====================================================
   MAHBUB JOARDER — PREMIUM PORTFOLIO UI
   Theme: Midnight Navy × Champagne Gold
   ===================================================== */

/* ===== 01. Variables ===== */

:root {
  --bg: #F7F5F0;
  --bg2: #EEE9DF;
  --text: #17212B;
  --muted: #77736B;

  --accent: #B69A70;
  --accent-light: #D8C3A1;
  --accent-dark: #96794F;

  --surface: #FFFFFF;
  --surface-soft: #FBFAF7;

  --border: #EAE5DB;
  --border-dark: #DCD4C6;

  --dark: #17212B;
  --dark-soft: #202D39;

  --shadow:
    0 5px 24px rgba(23, 33, 43, 0.055);

  --shadow-hover:
    0 16px 40px rgba(23, 33, 43, 0.10);

  --shadow-gold:
    0 8px 24px rgba(182, 154, 112, 0.18);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --transition: all 0.25s ease;
}


/* ===== 02. Reset & Base ===== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family:
    'Manrope',
    'Inter',
    system-ui,
    -apple-system,
    sans-serif;

  background: var(--bg);
  color: var(--text);

  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text);
  line-height: 1.25;
}


/* ===== 03. Layout ===== */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.page {
  padding: 64px 0;
}

.narrow {
  max-width: 680px;
}

.muted {
  color: var(--muted);
}


/* ===== 04. Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.92);

  border-bottom: 1px solid rgba(234, 229, 219, 0.85);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
  padding: 18px 0;

  flex-wrap: wrap;
}

.logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 27px;
  font-weight: 700;

  color: var(--text);
  letter-spacing: -0.7px;

  white-space: nowrap;
}

.logo:hover {
  color: var(--accent-dark);
}


/* ===== 05. Main Navigation ===== */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;

  color: var(--text);

  font-size: 14px;
  font-weight: 650;

  padding: 9px 13px;
  border-radius: 999px;

  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg2);
  color: var(--text);
}

.main-nav a.active::after {
  content: '';

  position: absolute;
  bottom: 3px;
  left: 50%;

  width: 4px;
  height: 4px;

  background: var(--accent);
  border-radius: 50%;

  transform: translateX(-50%);
}


/* ===== 06. Menu Button ===== */

.menu-btn {
  display: none;

  align-items: center;
  justify-content: center;

  background: var(--surface);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 12px;

  padding: 10px 14px;

  font-size: 14px;
  font-weight: 700;

  transition: var(--transition);
}

.menu-btn:hover {
  background: var(--bg2);
  border-color: var(--accent-light);
}


/* ===== 07. Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  background: var(--dark);
  color: #fff;

  padding: 13px 25px;

  border: 1px solid var(--dark);
  border-radius: 999px;

  font-size: 14px;
  font-weight: 750;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);

  color: #fff;

  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn:active {
  transform: scale(0.97);
}

.btn.ghost {
  background: transparent;
  color: var(--text);

  border: 1px solid var(--border-dark);
}

.btn.ghost:hover {
  background: var(--dark);
  color: #fff;

  border-color: var(--dark);
}


/* ===== 08. Hero Section ===== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: 105px 0 85px;

  background:
    radial-gradient(
      circle at 85% 35%,
      rgba(182, 154, 112, 0.16),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #FBFAF7 0%,
      #F2EEE5 55%,
      #EAE5DA 100%
    );

  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';

  position: absolute;
  z-index: -1;

  width: 430px;
  height: 430px;

  top: -180px;
  right: -100px;

  border: 1px solid rgba(182, 154, 112, 0.22);
  border-radius: 50%;

  box-shadow:
    0 0 0 35px rgba(182, 154, 112, 0.035),
    0 0 0 75px rgba(182, 154, 112, 0.025);
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;

  font-size: clamp(42px, 6.5vw, 82px);

  font-weight: 700;
  line-height: 1.08;

  letter-spacing: -2px;

  margin: 17px 0 22px;

  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--accent-dark);

  font-size: 11px;
  font-weight: 850;

  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: '';

  display: inline-block;

  width: 38px;
  height: 1px;

  background: var(--accent);
}

.lead {
  max-width: 650px;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.8;

  margin: 0;
}

.cta-row {
  display: flex;
  align-items: center;

  gap: 13px;
  flex-wrap: wrap;

  margin-top: 32px;
}


/* ===== 09. Section Headings ===== */

section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

section h2::first-letter {
  color: var(--text);
}


/* ===== 10. Cards & Grid ===== */

.grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(280px, 1fr));

  gap: 26px;

  margin: 32px 0;
}

.card {
  position: relative;
  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  padding: 26px;

  box-shadow: var(--shadow);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow-hover);

  border-color: var(--accent-light);
}

.card h3 {
  margin: 0 0 12px;

  font-size: 19px;
  font-weight: 800;

  letter-spacing: -0.5px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.card img {
  width: 100%;
  height: auto;

  border-radius: var(--radius-sm);

  object-fit: cover;
}

.card a {
  color: var(--text);
  font-weight: 750;
}

.card a:hover {
  color: var(--accent-dark);
}


/* ===== 11. Page Content ===== */

.page h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);

  letter-spacing: -1px;

  margin-bottom: 18px;
}

.page h2 {
  margin-bottom: 22px;
}

.page p {
  color: var(--muted);
}


/* ===== 12. Filters & Forms ===== */

.filters {
  display: flex;
  align-items: center;

  gap: 14px;
  flex-wrap: wrap;

  margin: 25px 0 32px;
}

.filters input,
.filters select,
input,
textarea,
select {
  width: 100%;
  max-width: 420px;

  padding: 13px 16px;

  background: var(--surface);
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  font-size: 14px;

  outline: none;

  transition: var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: #A7A198;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);

  box-shadow:
    0 0 0 4px rgba(182, 154, 112, 0.12);
}

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

label {
  display: block;

  margin: 18px 0 7px;

  color: var(--text);

  font-size: 14px;
  font-weight: 750;
}

label input,
label textarea,
label select {
  margin-top: 8px;
  font-weight: 400;
}


/* ===== 13. Tables ===== */

.table {
  width: 100%;

  border-collapse: separate;
  border-spacing: 0;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);
}

.table th {
  background: #F5F1E9;

  color: var(--muted);

  font-size: 12px;
  font-weight: 850;

  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.table td,
.table th {
  padding: 16px 18px;

  text-align: left;

  border-bottom: 1px solid var(--border);
}

.table td {
  font-size: 14px;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: #FBF9F5;
}


/* ===== 14. Flash Messages ===== */

.flash {
  background: #FFF7E7;

  border: 1px solid #EBD6A8;
  border-left: 4px solid var(--accent);

  color: #765D35;

  padding: 15px 19px;

  border-radius: var(--radius-sm);

  margin: 20px 0;

  font-size: 14px;
}


/* ===== 15. Footer ===== */

.site-footer {
  position: relative;
  overflow: hidden;

  margin-top: 80px;

  padding: 65px 0 48px;

  background:
    radial-gradient(
      circle at 10% 100%,
      rgba(182, 154, 112, 0.12),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #17212B,
      #101922
    );

  color: #fff;

  border-top: 3px solid var(--accent);
}

.site-footer::before {
  content: '';

  position: absolute;

  width: 350px;
  height: 350px;

  right: -150px;
  bottom: -230px;

  border: 1px solid rgba(182, 154, 112, 0.2);
  border-radius: 50%;

  box-shadow:
    0 0 0 35px rgba(182, 154, 112, 0.035),
    0 0 0 75px rgba(182, 154, 112, 0.025);

  pointer-events: none;
}

.site-footer .wrap {
  position: relative;
  z-index: 1;

  display: grid;

  grid-template-columns: 1.4fr 1fr 1fr;

  gap: 42px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;

  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--accent-light);
}

.site-footer .logo {
  color: #fff;
}


/* ===== 16. Footer Newsletter ===== */

.site-footer input {
  background: rgba(255, 255, 255, 0.08);

  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.site-footer input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 154, 112, 0.15);
}

.site-footer .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-footer .btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--dark);
}


/* ===== 17. Dashboard & Utility ===== */

.dashboard,
.admin-panel {
  padding: 35px 0;
}

.dashboard .card,
.admin-panel .card {
  border-radius: var(--radius);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

small {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid rgba(182, 154, 112, 0.5);
  outline-offset: 3px;
}


/* ===== 18. Responsive — Tablet ===== */

@media (max-width: 1024px) {

  .wrap {
    padding: 0 24px;
  }

  .header-inner {
    gap: 15px;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero {
    padding: 80px 0 65px;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .wrap > :last-child {
    grid-column: 1 / -1;
  }
}


/* ===== 19. Responsive — Mobile ===== */

@media (max-width: 768px) {

  .wrap {
    padding: 0 20px;
  }

  .header-inner {
    padding: 15px 0;
  }

  .logo {
    font-size: 23px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .main-nav {
    display: none;

    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 5px;

    padding: 12px 0 5px;

    border-top: 1px solid var(--border);
  }

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

  .main-nav a {
    width: 100%;

    padding: 12px 15px;

    border-radius: 10px;
    font-size: 14px;
  }

  .main-nav a.active::after {
    display: none;
  }

  .hero {
    padding: 65px 0 50px;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 58px);
    letter-spacing: -1.5px;
  }

  .lead {
    font-size: 16px;
  }

  .cta-row {
    gap: 10px;
  }

  .page {
    padding: 42px 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card {
    padding: 19px;
  }

  .site-footer {
    padding: 48px 0 35px;
    margin-top: 55px;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer .wrap > :last-child {
    grid-column: auto;
  }
}


/* ===== 20. Responsive — Small Mobile ===== */

@media (max-width: 480px) {

  .wrap {
    padding: 0 16px;
  }

  .logo {
    font-size: 21px;
  }

  .hero {
    padding: 48px 0 38px;
  }

  .hero h1 {
    font-size: 39px;
    line-height: 1.12;
    letter-spacing: -1.2px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  .lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .card {
    padding: 21px;
  }

  .page {
    padding: 35px 0;
  }

  .page h1 {
    font-size: 36px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-footer {
    padding: 40px 0 30px;
  }
}


/* ===== 21. Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
