/* Basic Reset & Dark Theme */
:root {
    --primary-color: #ffcb05; /* Pokémon Yellow */
    --secondary-color: #3d5a80; /* Pokémon Blue */
    --background-color: #1a1a1a;
    --surface-color: #2c2c2c;
    --text-color: #e0e0e0;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    background-color: var(--surface-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    padding: 10px;
    font-weight: 500;
    position: relative;
}

header nav ul li a.active,
header nav ul li a:hover {
    color: #fff;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

header nav ul li a.active::after,
header nav ul li a:hover::after {
    width: 100%;
}

header.animated-header {
    width: 90%;
    max-width: 1200px;
    left: 0;
    right: 0;
    margin: 20px auto 0 auto;
    transform: none;
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37), 0 2px 10px rgba(0,0,0,0.5);
    background: rgba(44,44,44,0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.12);
}

/* Main Content */
main {
    padding-top: calc(var(--header-height) + 40px);
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 1;
    animation: livelyAppear 0.85s cubic-bezier(0.77,0,0.175,1) forwards;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 203, 5, 0.4);
    color: #000;
}

/* Featured Items Section */
.featured-items {
    padding: 4rem 5%;
    text-align: center;
}

.featured-items h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.item-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: left;
    animation: cardSpringIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-card h3 {
    font-size: 1.2rem;
    margin: 1rem;
    color: var(--primary-color);
}

.item-card p {
    margin: 0 1rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.item-card button {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 auto 1rem;
    padding: 10px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.item-card button:hover {
    background-color: #5a7a9c;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--surface-color);
    margin-top: 2rem;
}

/* Animations */
@keyframes livelyAppear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    70% {
        opacity: 1;
        transform: translateY(-8px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.item-card,
.hero-content {
    animation: livelyAppear 0.85s cubic-bezier(0.77,0,0.175,1) forwards;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.item-card.animated,
.hero-content.animated {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Staggered delays for item cards */
.item-card:nth-child(1) { animation-delay: 0.15s; }
.item-card:nth-child(2) { animation-delay: 0.3s; }
.item-card:nth-child(3) { animation-delay: 0.45s; }
.item-card:nth-child(4) { animation-delay: 0.6s; }

/* General Page Styles */
.page-header {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    text-align: center;
    margin-top: -2rem; /* Overlap with footer a bit if needed */
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

.page-content {
    padding: 4rem 5%;
}

/* Contact Form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid var(--secondary-color);
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 203, 5, 0.5);
}

#contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animated-header {
    animation: slideDown 0.8s cubic-bezier(0.77,0,0.175,1) 0.1s both;
}

.animated-footer {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.77,0,0.175,1), transform 0.8s cubic-bezier(0.77,0,0.175,1);
}
.animated-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism for item cards */
.item-card {
    background: rgba(44,44,44,0.7);
    backdrop-filter: blur(6px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.37);
}

/* Enhanced card hover: tilt and shadow burst */
.item-card:hover {
    transform: translateY(-10px) scale(1.03) rotateZ(-1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 0 2px var(--primary-color);
}

/* Button ripple/scale effect */
.item-card button, .cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.item-card button:active, .cta-button:active {
    transform: scale(0.97);
}
.item-card button::after, .cta-button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}
.item-card button:active::after, .cta-button:active::after {
    width: 200px;
    height: 200px;
    opacity: 1;
    transition: 0s;
}

/* Section fade/slide-in */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
section, .featured-items, .hero {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.77,0,0.175,1), transform 0.8s cubic-bezier(0.77,0,0.175,1);
}
section.visible, .featured-items.visible, .hero.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cardSpringIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.92) rotateX(18deg);
    filter: blur(4px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.04) rotateX(-4deg);
    filter: blur(0);
  }
  80% {
    transform: translateY(4px) scale(0.98) rotateX(2deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
  }
}

.item-card {
  animation: cardSpringIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.item-card.animated {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
  background: rgba(44,44,44,0.7);
  padding: 0.75rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.sort-bar label {
  color: var(--primary-color);
  font-size: 1rem;
}
.sort-bar select {
  background: rgba(255,255,255,0.08);
  color: var(--text-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 0.4rem 1.2rem 0.4rem 0.7rem;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  cursor: pointer;
}
.sort-bar select:focus, .sort-bar select:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px var(--primary-color, #ffcb05);
}

@media (max-width: 900px) {
  header.animated-header {
    width: 98%;
    max-width: 98vw;
    padding: 0 2vw;
    border-radius: 24px;
  }
  .featured-items, .page-content {
    padding: 2rem 2vw;
  }
  .item-grid {
    gap: 1rem;
  }
  .sort-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 600px) {
  header.animated-header {
    flex-direction: column;
    height: auto;
    padding: 0.7rem 2vw;
    border-radius: 16px;
    margin-top: 8px;
  }
  header .logo a {
    font-size: 1.2rem;
  }
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
  }
  header nav ul li {
    margin: 0.5rem 0 0 0;
  }
  main {
    padding-top: 90px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .item-grid {
    grid-template-columns: 1fr;
  }
  .item-card {
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  .item-card img {
    height: 140px;
  }
  .item-card h3 {
    font-size: 1rem;
    margin: 0.7rem;
  }
  .item-card p {
    font-size: 1rem;
    margin: 0 0.7rem 0.7rem;
  }
  .item-card button, .cta-button {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  .sort-bar {
    font-size: 0.95rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
  }
} 