:root {
  --bg: #0b1020;
  --card: #0f1724;
  --muted: #94a3b8;
  --accent: #7be0ff;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --maxw: 1200px;
  --mx: 50%;
  --my: 40%;
}

/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
  background: linear-gradient(180deg, var(--bg) 0%, #061021 100%);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}


.reactive-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(500px circle at var(--mx) var(--my), rgba(123, 224, 255, 0.15), transparent 60%),
    radial-gradient(380px circle at calc(var(--mx) - 18%) calc(var(--my) + 16%), rgba(111, 155, 255, 0.12), transparent 65%),
    linear-gradient(180deg, #0b1020 0%, #061021 100%);
  transition: background-position 120ms linear;
}

/* === WRAPPER & HEADER === */
.wrap {
  max-width: var(--maxw);
  margin: 40px auto;
  padding: 28px;
  animation: floatIn 0.8s ease both;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6f9bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #042233;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.6px;
}

.brand p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 12px;
}
.featured-img {
  width: 100%;
  height: 250px; /* or whatever you want */
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: inset 0 -60px 120px rgba(0,0,0,0.45);
}
/* === BUTTONS === */
.btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 224, 255, 0.15);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), #6f9bff);
  color: #042233;
  border: none;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(255, 255, 255, 0.3);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* === HERO SECTION === */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}

.intro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 28px;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.intro h2 {
  margin: 0 0 8px 0;
  font-size: 34px;
}

.intro p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.45;
}

.cta {
  display: flex;
  gap: 12px;
}

/* === PREVIEW SECTION === */
.preview {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview img {
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
}

/* === TAGS === */
.tag {
  font-size: 12px;
  color: var(--muted);      /* blend with text */
  background: var(--card);  /* blend with card */
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.tag:hover {
  background: rgba(123, 224, 255, 0.1);
  color: var(--accent);
}

/* === GRID / WORK SECTION === */
.section {
  margin-top: 28px;
}

.section h3 {
  margin: 0 0 14px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.work {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.work:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(123, 224, 255, 0.35);
  box-shadow: 0 18px 35px rgba(3, 12, 30, 0.45);
}

.work .thumb {
  height: 160px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -60px 120px rgba(0, 0, 0, 0.45);
}

.work .meta {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === MODALS === */
.modal,
.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.modal.show,
.contact-modal.show {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.modal-card,
.contact-card {
  max-width: 900px;
  width: 100%;
  background: #071025;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-scroll {
  overflow-y: auto;
  flex: 1;
  padding-top: 10px;
}

.closeModal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 32px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.closeModal:hover {
  opacity: 0.8;
}

.modal-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.modal-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
}

/* === FOOTER === */
footer {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
}

/* === ANIMATIONS === */
.fade-in {
  animation: fadeInUp 0.7s ease both;
}

.grid .work {
  opacity: 1;
  transform: translateY(0);
}

.contact-page,
.contact-card {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wrap {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .brand h1 {
    font-size: 16px;
  }
}

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

.info-card p {
  line-height: 1.6;
  color: #d6e4f3;
}
