/* MyPhoto.Pics & MyPhoto.org - Premium Redesign Stylesheet */

:root {
  color-scheme: dark;
  --bg: #07080a;
  --surface: rgba(15, 17, 23, 0.7);
  --surface-strong: rgba(10, 11, 15, 0.95);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #d4af37; /* Luxury Champagne Gold */
  --accent-rgb: 212, 175, 55;
  --accent-gradient: linear-gradient(135deg, #f3e5ab, #d4af37);
  --accent-strong: #ffd700;
  --accent-alt: #aa8c2c;
  --shadow: rgba(0, 0, 0, 0.6);
  --glass-blur: blur(12px);
}

body.light-mode {
  color-scheme: light;
  --bg: #faf9f6; /* Warm alabaster white */
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: rgba(244, 243, 238, 0.95);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --text: #1c1d21;
  --muted: #64748b;
  --accent: #a3821a; /* Deeper gold for accessibility */
  --accent-rgb: 163, 130, 26;
  --accent-gradient: linear-gradient(135deg, #c5a847, #8c6e11);
  --accent-strong: #8c6e11;
  --accent-alt: #6d540b;
  --shadow: rgba(0, 0, 0, 0.05);
  --glass-blur: blur(12px);
}

/* Background Mesh Gradients */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: -10;
  opacity: 0.6;
  mix-blend-mode: screen;
  filter: blur(140px);
  transition: background 0.5s ease;
}

body::before {
  top: -20%;
  left: -20%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

body::after {
  bottom: -20%;
  right: -20%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

body.light-mode::before {
  mix-blend-mode: multiply;
  opacity: 0.35;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
}

body.light-mode::after {
  mix-blend-mode: multiply;
  opacity: 0.25;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Buttons & CTAs */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 0.8rem 1.6rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px var(--shadow);
  backdrop-filter: var(--glass-blur);
}

button:hover, .button:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 20px var(--shadow);
  background-color: var(--surface-strong);
}

button:active, .button:active {
  transform: translateY(0);
}

.cta-primary {
  background: var(--accent-gradient);
  border: none;
  color: #000 !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

body.light-mode .cta-primary {
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(163, 130, 26, 0.2);
}

.cta-primary:hover {
  background: var(--accent-gradient);
  opacity: 0.95;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

body.light-mode .cta-primary:hover {
  box-shadow: 0 8px 24px rgba(163, 130, 26, 0.3);
}

/* Page Shell & Layout */
.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
  position: relative;
}

@media (max-width: 768px) {
  .page-shell {
    padding: 1.5rem 1.2rem 4rem;
  }
}

/* Site Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 1.5rem;
  z-index: 1000;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  margin-bottom: 3rem;
}

.site-header .logo {
  height: 40px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.site-header .logo:hover {
  transform: scale(1.05);
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  flex-grow: 1;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  backdrop-filter: none;
  transition: background-color 0.3s, transform 0.3s;
}

.theme-toggle button:hover {
  background: var(--border);
  transform: scale(1.05);
}

.theme-toggle .icon {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
body.light-mode .theme-toggle .sun { display: block; }
body.light-mode .theme-toggle .moon { display: none; }

@media (max-width: 768px) {
  .site-header {
    border-radius: 24px;
    padding: 0.8rem 1.2rem;
    top: 1rem;
    flex-wrap: wrap;
  }
  .site-title {
    font-size: 1.3rem;
    order: 1;
  }
  .theme-toggle {
    order: 2;
  }
  .cta-group {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
    justify-content: flex-end;
  }
  .site-header .logo {
    height: 32px;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0;
  }
  .hero p {
    margin-bottom: 1.8rem;
  }
}

/* Projects Section */
.projects {
  padding: 2rem 0 4rem;
}

.projects h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
}

.projects h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.8rem auto 0;
  border-radius: 10px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Project Cards */
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px var(--shadow);
  backdrop-filter: var(--glass-blur);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px var(--shadow);
  background-color: var(--surface-strong);
}

.project-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.project-card__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0;
}

.project-card__description {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.project-card .button {
  margin-top: 1.5rem;
}

.project-card.coming-soon {
  opacity: 0.6;
  border-style: dashed;
}

.project-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 10px 30px var(--shadow);
  background: var(--surface);
}

.project-card.coming-soon .project-card__description {
  color: var(--accent);
  font-weight: 500;
}

/* Gallery Section (in myphoto.html) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Photo Card */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px var(--shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 4 / 5;
}

.card__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px var(--shadow);
}

.card:hover .card__image {
  transform: scale(1.06);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 8, 12, 0.85) 90%, rgba(7, 8, 12, 0.95) 100%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

body.light-mode .card__overlay {
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75) 85%, rgba(0, 0, 0, 0.85) 100%);
}

.card:hover .card__overlay {
  opacity: 0.95;
}

.card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: #ffffff; /* Always light text on dark overlay */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__content {
  transform: translateY(0);
}

.card__eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.card__title {
  margin: 0;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
}

.card__description {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Panel */
.contact-panel {
  margin: 4rem 0;
  padding: 3.5rem 3rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 15px 35px var(--shadow);
  backdrop-filter: var(--glass-blur);
}

body.light-mode .contact-panel {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
}

.contact-panel__copy {
  flex: 1;
}

.contact-panel__copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.contact-panel__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background-color: var(--surface-strong);
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 900px) {
  .contact-panel {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 1.8rem;
  }
  .contact-panel__actions {
    align-items: center;
    width: 100%;
  }
  .social-links {
    justify-content: center;
    width: 100%;
  }
}

/* Document style for Privacy Policy (Word-like document) */
.privacy-document {
  max-width: 800px;
  margin: 3rem auto;
  padding: 4rem 3.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 15px 45px var(--shadow);
  backdrop-filter: var(--glass-blur);
}

body.light-mode .privacy-document {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.privacy-document h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.privacy-document h2:first-of-type {
  margin-top: 0;
}

.privacy-document p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.privacy-document strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .privacy-document {
    padding: 2.5rem 1.8rem;
    margin: 1.5rem auto;
  }
}

/* Copyright Document Section */
.copyright-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 15px 35px var(--shadow);
  backdrop-filter: var(--glass-blur);
  margin-top: 2rem;
}

.copyright-section p {
  line-height: 1.8;
}

.canva-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 ratio for professional look */
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 2rem;
}

.canva-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.canva-embed__attribution {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}

.canva-embed__attribution a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .copyright-section {
    padding: 1.8rem;
  }
  .canva-embed {
    padding-top: 75%; /* 4:3 on mobile for better view */
  }
}

/* Footer styling */
.footer {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer p {
  margin: 0;
  line-height: 1.7;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-badges {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.dmca-badge img,
.copyrighted-badge img {
  height: 38px;
  width: auto;
  border-radius: 6px;
  transition: opacity 0.3s;
}

.dmca-badge:hover img,
.copyrighted-badge:hover img {
  opacity: 0.85;
}

/* Lightbox (ImageClick Popup) */
.ic-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
  cursor: zoom-out;
}

.ic-popup-overlay.ic-active {
  opacity: 1;
  visibility: visible;
}

.ic-popup-image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.ic-popup-overlay.ic-active .ic-popup-image {
  transform: scale(1) translateY(0);
}

/* Close button for lightbox */
.ic-popup-overlay::before {
  content: "×";
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
  cursor: pointer;
}

.ic-popup-overlay:hover::before {
  opacity: 1;
}

/* Cookie Popup styling */
.cookie-popup {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: 90%;
  max-width: 500px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 20px 50px var(--shadow);
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: var(--glass-blur);
}

.cookie-popup.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.privacy-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.privacy-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-popup button {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .cookie-popup {
    bottom: 1rem;
    padding: 1.5rem 1.2rem;
  }
  .cookie-actions {
    flex-direction: column-reverse;
    gap: 0.8rem;
  }
  .cookie-popup button {
    width: 100%;
  }
}

/* Status link/Incident flag styling */
.status-link {
  color: #ff4757;
  font-weight: bold;
  text-decoration: none;
}