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

:root {
  --dark-bg: #262629;
  --accent: #C59A4A;
  --text-light: #ffffff;
  --text-secondary: #b0b0b0;
  --border: #3a3a3e;
}

html {
  scroll-behavior: smooth;
}

.hero-spec {
  flex: 0 1 auto;
  text-align: center;
  transition: color 0.3s ease;
  color: var(--text-light);
}

.hero-spec:hover {
  color: var(--accent);
}

.hero-spec > div {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
}

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

a:hover {
  opacity: 0.8;
}

ul li {
  list-style-position: inside;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(38, 38, 41, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 2px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 2.5px;
  background: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(38, 38, 41, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 300px;
  }

  nav a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }
}

/* Main Content */
main {
  margin-top: 70px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

/* Hero Section with Carousel */
.hero-with-carousel {
  position: relative;
  margin-top: -70px;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.carousel-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  z-index: 0;
}

.carousel-background .carousel-track {
  height: 100%;
  z-index: 0;
}

.carousel-background .carousel-slide {
  z-index: 0;
}

.carousel-background .carousel-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(38, 38, 41, 0.6) 0%, rgba(38, 38, 41, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  text-shadow: 2px 2px 4px #000000;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.hero-content .highlight {
  color: var(--accent);
}

.hero-specs {
  display: flex;
  gap: 3rem;
  justify-content: flex-start;
  text-shadow: 2px 2px 4px #000000;
  font-size: 2rem;
  flex-wrap: wrap;
  margin: 3rem 0 4rem 0;
  padding: 2rem 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--dark-bg);
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 154, 74, 0.3);
  opacity: 1;
}

/* Carousel Section */
.carousel-container {
  width: 100%;
  height: 100vh;
  background: rgba(58, 58, 62, 0.3);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

/* Project Info Overlay (Bottom Right) - Hero Version */
.carousel-info-hero {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  width: auto;
  max-width: 380px;
  min-width: 320px;
  background: none;
  padding: 0;
  z-index: 120;
}

.carousel-info-item {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(197, 154, 74, 0.15) 0%, rgba(58, 58, 62, 0.5) 100%);
  backdrop-filter: blur(20px);
  border-left: 3px solid var(--accent);
  padding: 1.75rem;
  border-radius: 8px;
  box-shadow: -10px 10px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.carousel-info-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.carousel-project-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.carousel-client {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.carousel-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.carousel-platforms .platform {
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  background: transparent;
  border: 1px solid rgba(197, 154, 74, 0.4);
  border-radius: 2px;
}

.carousel-link {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--accent);
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--accent);
  width: fit-content;
  opacity: 0.9;
}

.carousel-link:hover {
  background: none;
  transform: translateX(5px);
  box-shadow: none;
  opacity: 1;
}

/* Navigation Buttons - HIDDEN */
.carousel-nav {
  display: none;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 150;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.hero-with-carousel:hover .carousel-indicators {
  opacity: 1;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(197, 154, 74, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: rgba(197, 154, 74, 0.7);
  transform: scale(1.3);
}

.carousel-indicator.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 4rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 1rem;
  display: inline-block;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.project-card {
  background: rgba(58, 58, 62, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.project-thumbnail {
  width: 100%;
  height: 400px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-thumbnail img,
.project-thumbnail svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.05);
}

.project-card:hover .project-info {
  opacity: 1;
  visibility: visible;
}

.project-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(197, 154, 74, 0.2) 0%, rgba(38, 38, 41, 0.85) 100%);
  backdrop-filter: blur(10px);
  border-bottom: none;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.project-client-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 0;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 154, 74, 0.1);
  border-radius: 6px;
  padding: 0.5rem;
  flex-shrink: 0;
}

.project-client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .project-client-logo {
    width: 40px;
    height: 40px;
    margin-left: 0.75rem;
  }
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(197, 154, 74, 0.15);
}

.project-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 600;
  text-shadow: 0px 0px 4px #000000;
}

.project-client {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0px 0px 4px #000000;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.platform {
  background: rgba(197, 154, 74, 0.15);
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(197, 154, 74, 0.3);
}

/* Platform Colors */
.platform.switch {
  background: rgba(220, 96, 96, 0.15);
  color: #E07070;
  border-color: rgba(220, 96, 96, 0.3);
}

.platform.xbox {
  background: rgba(16, 124, 16, 0.15);
  color: #107C10;
  border-color: rgba(16, 124, 16, 0.3);
}

.platform.ps {
  background: rgba(0, 112, 209, 0.15);
  color: #0070D1;
  border-color: rgba(0, 112, 209, 0.3);
}

.platform.pc {
  background: rgba(197, 154, 74, 0.15);
  color: var(--accent);
  border-color: rgba(197, 154, 74, 0.3);
}

/* Blog Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.post-card {
  background: rgba(58, 58, 62, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--text-light);
}

.post-card:hover .post-title {
  color: var(--accent);
}

.post-date {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.post-summary {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.read-more {
  margin-top: auto;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.post-card:hover .read-more {
  color: var(--text-light);
}

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

  .post-title {
    font-size: 1.1rem;
  }

  .post-summary {
    font-size: 0.9rem;
  }
}

/* Contact Section */
.contact-section {
  margin: 4rem 0;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, rgba(197, 154, 74, 0.1) 0%, rgba(58, 58, 62, 0.5) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-email {
  display: inline-block;
  font-size: 1.3rem;
  color: var(--accent);
  word-break: break-all;
  font-weight: 500;
  padding: 1rem 2rem;
  background: rgba(197, 154, 74, 0.15);
  border: 1px solid rgba(197, 154, 74, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-email:hover {
  background: rgba(197, 154, 74, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 154, 74, 0.2);
}

/* Footer */
footer {
  background: rgba(38, 38, 41, 0.7);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-secondary);
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 6rem 2rem;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 72px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.error-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.error-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.error-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-button {
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.error-button.primary {
  background: var(--accent);
  color: var(--dark-bg);
}

.error-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 154, 74, 0.3);
}

.error-button.secondary {
  background: rgba(197, 154, 74, 0.15);
  color: var(--accent);
  border: 1px solid rgba(197, 154, 74, 0.3);
}

.error-button.secondary:hover {
  background: rgba(197, 154, 74, 0.25);
}

.error-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Single Post */
.post-single {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.post-meta {
  color: var(--accent);
  font-size: 0.95rem;
}

.post-content {
  line-height: 1.8;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
}

.post-content h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem 0;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content code {
  background: rgba(58, 58, 62, 0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  color: var(--accent);
}

.post-content pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  nav a {
    margin-left: 1rem;
    font-size: 0.85rem;
  }

  main {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: clamp(2.rem, 8vw, 2.5rem);
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Hero with Carousel Mobile */
  .hero-with-carousel {
    padding: 0;
  }

  .hero-content {
    padding: 0 1rem;
  }

  
  .hero-specs {
    justify-content: center;
    font-size: 1.6rem;
    gap: 1rem;
    margin: 0;
  }
  .hero-buttons {
    justify-content: center;
  }

  .carousel-info-hero {
    right: 1.5rem;
    left: 1.5rem;
    min-width: unset;
    max-width: unset;
  }

  .carousel-info-item {
    padding: 1.25rem;
    width: 100%;
  }

  .carousel-info-item-name-client {
    display: flex;
    justify-content: space-between;
  }

  .carousel-project-name {
    font-size: 1.1rem;
  }

  .carousel-client {
    font-size: 0.7rem;
  }

  .carousel-platforms .platform {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }

  .carousel-link {
    font-size: 0.75rem;
  }

  /* Carousel Mobile */
  .carousel-container {
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-nav-prev {
    left: 1rem;
  }

  .carousel-nav-next {
    right: 1rem;
  }

  .carousel-indicators {
    bottom: 1rem;
    gap: 0.5rem;
  }

  .carousel-indicator {
    width: 10px;
    height: 10px;
  }

  .projects-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .project-thumbnail {
    height: 300px;
  }

  .project-info {
    padding: 1.5rem;
    position: absolute;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
  }

  .project-name {
    font-size: 1.2rem;
  }

  .project-client {
    font-size: 0.85rem;
  }
  .platforms {
    border-top: 0px solid var(--border);
  }

  .contact-section {
    padding: 2rem 1rem;
  }

  .post-header h1 {
    font-size: 1.3rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

  .post-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .post-single {
    margin: 0 auto;
  }

  .post-content h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .post-content h3 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
  }

  .post-content p {
    margin-bottom: 1rem;
  }

  .post-content pre {
    padding: 1rem;
    font-size: 0.85rem;
  }
}

  .post-single {
    margin: 1rem auto;
    padding: 0 1rem;
  }
}
