@import 'variables.css';
@import 'navigation.css';
@import 'home.css';
@import 'resume.css';
@import 'project.css';
@import 'work.css';
@import 'animation.css';
@import 'responsive-layout.css';
@import 'svg-project.css';
@import 'variables.css';

/* GLOBAL STYLES */
html {
  box-sizing: border-box;
}
*,
*:before,
*::after {
  box-sizing: inherit;
}
html,
body {
  block-size: 100%;
}

body {
  background: var(--yellow-100);
  color: var(--yellow-800);
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 1.7rem;
}
h3 {
  font-size: 1.5rem;
}

/* Links */
a {
  color: var(--accent-olive);
}
a:hover {
  color: var(--accent-amber);
  text-decoration: none;
}
footer a {
  color: var(--accent-olive);
}
footer a:hover {
  color: var(--accent-coral);
  text-decoration: none;
}

/* BUTTONS – lift + shadow */
.btn {
  background: var(--accent-amber);
  color: var(--yellow-100);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: inline-block;
  padding: 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover {
  background: var(--accent-coral);
  color:var(--yellow-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px oklch(from var(--yellow-800) l c h / 0.3);
}

.content-wrapper {
  margin: 0 auto;
  padding: 0.625rem;
  max-inline-size: 56.25rem;
}

/* Popover */
[popover] {
  position: fixed;
  background: var(--yellow-200);
  border: 1px solid var(--yellow-300);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px oklch(from var(--yellow-800) l c h / 0.3);
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -25%);
  inline-size: 80%;
  max-inline-size: 100%;
  container-type: inline-size;
}
[popover]::backdrop {
  background: oklch(from var(--yellow-900) l c h / 0.5);
  backdrop-filter: blur(3px);
}
#contact-button {
  anchor-name: --contact-button;
}
#contact-popover {
  position-anchor: --contact-button;
}
.popover-container {
  --popover-max-width: 100%;
  max-inline-size: var(--popover-max-width);
}
.popover-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.popover-image {
  inline-size: 9.375rem;
  block-size: 9.375rem;
  border-radius: 50%;
  margin: 0 auto;
}
.popover-close {
  align-self: flex-end;
  background: var(--accent-olive);
}
.popover-close:hover {
  background: var(--accent-coral);
}

/* Container Queries */
@container (min-width: 40rem) {
  .popover-container {
    --popover-max-width: 33.33vw;
  }
}
@container (min-width: 25rem) and (max-width: 39.99rem) {
  .popover-content p:nth-child(3) {
    display: none;
  }
  .popover-container {
    --popover-max-width: 80%;
  }
}
@container (max-width: 24.99rem) {
  .popover-container {
    --popover-max-width: 100vw;
    inline-size: 100%;
  }
}

/* FOOTER */
footer {
  background: var(--yellow-700);
  color: var(--yellow-300);
  text-align: center;
  padding: 0.7rem;
}
.socials {
  list-style-type: none;
  padding: 0;
}
.socials li {
  display: inline-block;
  margin-inline-start: 1.25rem;
}
.socials img {
  inline-size: 2rem;
}
.socials img:hover {
  opacity: 0.5;
}

/*aniamtion*/
.project-item,
.animation-card {
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-item:hover,
.animation-card:hover {
  transform: translateY(-6px) scale(1.02) rotate(0.5deg);
  box-shadow: 0 8px 16px oklch(from var(--yellow-800) l c h / 0.35);
}
