/**
* CSS file to hold styles that apply across the application
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600&display=swap");

:root {
  --color-primary:         #8B5E3C;
  --color-primary-light:   #B5845C;
  --color-primary-dark:    #6B4428;
  --color-secondary:       #C49A6C;
  --color-secondary-light: #D4B48C;
  --color-accent:          #E8C9A0;
  --color-bg:              #FAF7F4;
  --color-surface:         #F0E8DE;
  --color-text:            #2C1F14;
  --color-muted:           #9B8070;
  --color-white:           #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Raleway', sans-serif;

  --space-xs: 4px;  --space-sm: 8px;
  --space-md: 16px; --space-lg: 32px;
  --space-xl: 64px; --space-2xl: 96px;

  --radius-sm: 3px; --radius-md: 8px; --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(44,31,20,0.08);
  --shadow-md: 0 4px 24px rgba(44,31,20,0.12);
  --shadow-lg: 0 8px 40px rgba(44,31,20,0.16);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

div#main {
  display: flex;
  flex-direction: column;
}

section {
  position: relative;
}

section.dark {
  min-height: 100vh;
  color: var(--color-accent);
  background: rgba(107, 68, 40, 0.35);
}

section.light {
  color: var(--color-text);
  background: rgba(250, 247, 244, 0.85);
  padding: 6rem 0;
}

section img.background {
  width: 100vmax;
  height: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  pointer-events: none;
  object-fit: cover;
}

h1 {
  font-weight: 300;
  font-family: var(--font-display);
  font-size: 6rem;
  margin: 0;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 300px) {
  h1 {
    font-weight: 300;
    font-family: var(--font-display);
    font-size: 2rem;
  }
}

@media screen and (min-width: 301px) and (max-width: 360px) {
  h1 {
    font-weight: 300;
    font-family: var(--font-display);
    font-size: 3rem;
  }
}

@media screen and (min-width: 361px) and (max-width: 420px) {
  h1 {
    font-weight: 300;
    font-family: var(--font-display);
    font-size: 4rem;
  }
}

h2 {
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0;
  color: var(--color-primary-dark);
}

@media screen and (max-width: 300px) {
    h2 { font-size: 1.7rem; }
}

@media screen and (min-width: 301px) and (max-width: 360px) {
    h2 { font-size: 1.8rem; }
}

@media screen and (min-width: 361px) and (max-width: 420px) {
    h2 { font-size: 1.9rem; }
}

h3 {
  font-weight: 400;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0;
  color: var(--color-primary);
}

h4 {
    font-weight: 500;
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-align: center;
    margin: 10px 0px 10px 0px;
    color: var(--color-primary-dark);
}

h5 {
    font-weight: 400;
    font-family: var(--font-body);
    font-size: 1rem;
    margin: 5px 0px 5px 0px;
    color: var(--color-muted);
}

p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 0 0;
  font-weight: 400;
  font-family: var(--font-body);
}

p.large {
  font-size: 24px;
}

p.small {
  font-size: 15px;
}

hr {
  margin: 2.5rem;
}

li {
  line-height: 1.7;
}

li::marker {
  color: var(--color-secondary);
}

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

a:hover {
  color: var(--color-secondary);
}

.portfolio-container {
  display: flex;
  flex-direction: row;
  padding-top: 3rem;
}

.portfolio-title {
    text-align: center;
    margin-top: 0;
    padding-top: 20px;
}

.carousel-wrapper {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100%;
    width: 100%;
    margin-top: 20px;
}


@media screen and (max-width: 768px) {
  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }
}

.portfolio-hero {
  max-width: 40%;
  align-self: center;
}

@media screen and (max-width: 768px) {
  .portfolio-hero {
    max-width: 100%;
    width: 100%;
    align-self: center;
  }
}

.container {
    margin: 20px auto;
    display: grid;
    grid-template-columns: 400px 400px;
    grid-gap: 20px;
}

@media screen and (max-width: 600px) {
  .container {
    display: block;
    margin: 10px auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
  }
}

.container .box {
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  border: 1px solid var(--color-surface);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

img.social-icon {
  width: 30px;
  height: 30px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Splash screen ── */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #6B4428 0%, #8B5E3C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 154, 108, 0.12);
}

.loading-deco--1 {
    width: 480px;
    height: 480px;
    top: -140px;
    right: -140px;
    animation: deco-pulse 5s ease-in-out infinite;
}

.loading-deco--2 {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -100px;
    animation: deco-pulse 5s ease-in-out 2.5s infinite;
}

.loading-deco--3 {
    width: 180px;
    height: 180px;
    top: 20%;
    left: 8%;
    animation: deco-pulse 6s ease-in-out 1s infinite;
}

@keyframes deco-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.7; }
    50%       { transform: scale(1.06); opacity: 1;   }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 1;
}

.loading-brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    letter-spacing: 0.35em;
    color: #E8C9A0;
    margin: 0;
    animation: loading-fade-up 1s ease-out both;
}

.loading-brand-sub {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(0.65rem, 2vw, 0.8rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(232, 201, 160, 0.6);
    margin: 0 0 2rem;
    animation: loading-fade-up 1s ease-out 0.3s both;
}

@keyframes loading-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.loading-progress {
    display: block;
    width: 4.5rem;
    height: 4.5rem;
    animation: loading-fade-up 1s ease-out 0.6s both;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(232, 201, 160, 0.18);
    stroke-width: 0.35rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #E8C9A0;
    stroke-linecap: round;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: static;
    inset: auto;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: rgba(232, 201, 160, 0.5);
    animation: loading-fade-up 1s ease-out 0.8s both;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}