/* --- CUSTOM THEMING VARIABLE DEFINITIONS --- */
:root {
  --retina-dark: #0f172a;       /* Dark Navy Background */
  --retina-light: #f8fafc;      /* Soft Light Background */
  --retina-card-bg: #ffffff;    /* Pure White Surface */
  --retina-orange: #f97316;     /* Accent Carrot Orange */
  --retina-purple: #7c3aed;     /* Accent Berry Purple */
  --retina-green: #10b981;      /* Accent Leafy Green */
  --retina-yellow: #f59e0b;     /* Bright Yellow Highlighting */
  --retina-text-pale: #475569;  /* Soft Muted Gray for Text Body */
  --retina-glow-grad: linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 100%);  /* Dark Rich Blue Gradient */
  --retina-soft-grad: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);  /* Vibrant Purple/Magenta Gradient */
  
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* --- GLOBAL LAYOUT CONTROLS --- */
body {
  background-color: var(--retina-light);
  color: var(--retina-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Custom Safe Wrapper Class (No prohibited names) */
.optic-flow-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- HELPER STYLING CLASSES --- */
.center-self {
  margin-left: auto;
  margin-right: auto;
}
.text-align-center {
  text-align: center;
}
.text-color-dark {
  color: var(--retina-dark);
}
.text-color-pale {
  color: var(--retina-text-pale);
}
.text-color-light {
  color: var(--retina-light);
}
.text-color-green {
  color: var(--retina-green);
}

/* Typography Scale */
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.font-body {
  font-family: var(--font-body);
}

.font-size-huge {
  font-size: 3.5rem;
  line-height: 1.15;
}
.font-size-large {
  font-size: 2.25rem;
  line-height: 1.25;
}
.font-size-medium {
  font-size: 1.25rem;
  line-height: 1.5;
}
.font-size-small {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .font-size-huge {
    font-size: 2.25rem;
  }
  .font-size-large {
    font-size: 1.75rem;
  }
}

/* --- SCROLL-DRIVEN PROGRESS BAR (CSS ONLY) --- */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--retina-orange);
  width: 0%;
  z-index: 100;
  animation: progress-grow linear;
  animation-timeline: scroll();
}

@keyframes progress-grow {
  to { width: 100%; }
}

/* --- VIEWPORT ENTRANCE ANIMATION (CSS ONLY) --- */
@keyframes slide-up-reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  animation: slide-up-reveal 0.8s ease-out both;
  animation-timeline: view();
  animation-range: entry 5% entry 30%;
}

/* --- HEADER CSS-ONLY HAMBURGER --- */
.cornea-check-input {
  display: none;
}
.cornea-toggle-switch {
  display: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cornea-toggle-switch {
    display: block;
  }
  .cornea-link-stack {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--retina-dark);
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
  .cornea-link-stack ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .cornea-link-stack ul li {
    margin-bottom: 1rem;
    width: 100%;
  }
  .cornea-check-input:checked ~ .cornea-link-stack {
    display: block;
  }
}

/* --- CONTENT SECTION 1: OFFSET STYLE --- */
.offset-image-left {
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}
.offset-image-left-bg {
  transform: translate(-1.5rem, 1.5rem);
}
.offset-image-left:hover {
  transform: translate(0.5rem, -0.5rem);
}

@media (max-width: 768px) {
  .offset-image-left-bg {
    display: none;
  }
}

/* --- CONTENT SECTION 2: CIRCLE MASK --- */
.circle-masked-image {
  border-radius: 50%;
  width: 320px;
  height: 320px;
  border: 4px solid var(--retina-card-bg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}
.circle-masked-image:hover {
  transform: scale(1.05) rotate(2deg);
}

/* --- MASONRY LAYOUT FOR TESTIMONIALS --- */
.viewer-opinion-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

@media (max-width: 1024px) {
  .viewer-opinion-masonry {
    column-count: 2;
  }
}
@media (max-width: 640px) {
  .viewer-opinion-masonry {
    column-count: 1;
  }
}

/* --- COMPONENT TRANSITIONS & SHADOWS --- */
.lens-panel-feedback {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lens-panel-feedback:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Custom Action Inputs */
input, textarea {
  transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, textarea:focus {
  border-color: var(--retina-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}