:root {
  --primary-brown: #3d2500;
  --bg: #ffeb91;
  --page-bg: #ffffff;
  --text: #333;
  --card: #ffffff;
  --section-bg: #f4f4f4;
  --header-bg: #ffebff;
  --background-dark: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --primary-color: var(--primary-brown);
  --text-color-light: #666666;
  --primary-green: #2a9d8f;
  --text-color-dark: #ffffff;
  --secondary-color: var(--primary-brown);
  --footer-bg: #222222;
  --footer-text: #ffffff;
}

[data-theme="dark"] {
  --bg: #121212;
  --page-bg: #0b0b0b;
  --text: #f5f5f5;
  --card: #1e1e1e;
  --section-bg: #181818;
  --header-bg: #121212;
  --primary-brown: #f87d02;
  --footer-bg: var(--card);
  --footer-text: var(--text);
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  background: var(--page-bg);
  color: var(--text);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: var(--header-bg);
  position: relative;
}

.header-image {
  width: 100px;
  height: auto;
  border-radius: 50%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-brown);
}

nav.nav-menu a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-color-light);
  font-weight: 500;
}

/* Hamburger Menu */
#hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  margin-left: 20px;
}

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

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
  header {
    padding: 15px 5%;
  }

  .logo {
    font-size: 1.1rem;
    gap: 8px;
  }

  .header-image {
    width: 60px;
  }

  #hamburger {
    display: flex;
  }

  nav.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
  }

  nav.nav-menu.active {
    display: flex;
  }

  nav.nav-menu a {
    margin: 0;
    padding: 12px 5%;
    display: block;
    border-bottom: 1px solid var(--border-color);
  }

  nav.nav-menu a:last-child {
    border-bottom: none;
  }
}

/* carousel */
.carousel-container {
  width: 100%;
  height: 500px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin-bottom: 48px;
  background: transparent;
  padding: 0;
}

@media (max-width: 768px) {
  .carousel-container {
    height: 400px;
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    height: 300px;
  }
}

.carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  position: relative;
}

/* Split slide */
.slide-text {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  padding: 24px 28px;
  box-sizing: border-box;
  z-index: 3;
  background: var(--header-bg);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.slide-text-inner {
  max-width: 420px;
}

.slide-text h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  color: var(--primary-brown);
}

.slide-text p {
  margin: 0 0 18px;
  color: var(--text);
}

.slide-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay for better text contrast */
.slide-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(61, 37, 0, 0.55) 0%,
    rgba(61, 37, 0, 0.25) 35%,
    rgba(61, 37, 0, 0) 60%
  );
}

/* Responsive: stack text above image on smaller screens */
@media (max-width: 900px) {
  .slide {
    height: auto;
  }

  .slide-text {
    position: relative;
    transform: none;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px 16px;
    text-align: center;
    color: var(--text);
  }

  .slide-image {
    width: 100%;
    height: 300px;
  }

  .slide-image::after {
    background: linear-gradient(
      180deg,
      rgba(61, 37, 0, 0.4) 0%,
      rgba(61, 37, 0, 0) 60%
    );
  }

  .slide-text h2 {
    font-size: 1.5rem;
  }

  .slide-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .slide-image {
    height: 200px;
  }

  .slide-text {
    padding: 16px 12px;
  }

  .slide-text h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .slide-text p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
}

.carousel-container {
  width: 100%;
  height: 500px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin-bottom: 48px;
  background: transparent;
  padding: 0;
}

.hero {
  position: relative;
  padding: 80px 10%;
  background: var(--bg);
  display: flex;
  align-items: center;
}

.hero-content {
  position: static;
  transform: none;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  max-width: 800px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 6%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 5%;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

.highlight {
  color: var(--primary-brown);
}

.project-grid {
  padding: 60px;
  width: 100%;
  background: var(--section-bg);
}

@media (max-width: 768px) {
  .project-grid {
    padding: 40px 5%;
  }
}

@media (max-width: 600px) {
  .project-grid {
    padding: 30px 0;
  }
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-section {
  background: var(--section-bg);
  padding: 0;
}

@media (max-width: 768px) {
  .work-section {
    margin-bottom: 30px;
  }

  .work-section > div {
    padding: 30px 6% !important;
  }
}

@media (max-width: 600px) {
  .work-section > div {
    padding: 20px 5% !important;
  }

  .work-section h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .work-section p {
    font-size: 0.9rem;
  }
}

.project-card {
  display: flex;
  align-items: center;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  background: var(--card);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.project-info {
  flex: 1;
  text-align: left;
}

.project-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.tab {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding-bottom: 6px;
  color: var(--text-color-light);
}

.tab.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.hidden {
  display: none;
}
@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    text-align: center;
  }

  .project-info {
    text-align: center;
    margin-top: 20px;
  }
  .project-card:hover {
    transform: none;
  }
  .project-img {
    width: 100%;
    height: 220px;
    margin-left: 0;
    margin-top: 12px;
    border-radius: 8px;
  }
}

/* Project image box and tags */
.project-img {
  width: 160px;
  height: 110px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-left: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.tags {
  display: inline-flex;
  gap: 8px;
  margin-top: 8px;
}

.tags span {
  background: rgba(61, 37, 0, 0.06);
  color: var(--primary-brown);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.project-link {
  color: var(--secondary-color);
  text-decoration: none;
  padding-left: 6px;
}

.project-link:hover {
  text-decoration: underline;
}

/* Sidebar (for categories/widgets) */
.content-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 0 10%;
  align-items: start;
}

@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    padding: 0 6%;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .content-wrapper {
    padding: 0 5%;
    gap: 20px;
  }
}

.sidebar {
  width: 100%;
  position: sticky;
  top: 24px;
  align-self: start;
  padding-right: 40px;
  border-right: 2px solid var(--border-color);
}

@media (max-width: 900px) {
  .sidebar {
    position: relative;
    top: auto;
    border-right: none;
    padding-right: 0;
    order: -1;
  }
}

.sidebar-widget {
  background-color: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
  .sidebar-widget {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .sidebar-widget h3 {
    font-size: 1rem;
  }
}

.sidebar-widget h3 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-top: 0;
  font-size: 1.25rem;
}

.sidebar-widget ul {
  list-style: none;
  padding: 0;
}

.sidebar-widget ul li {
  margin-bottom: 0.75rem;
}

.sidebar-widget ul li a {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Contact form styles inside sidebar widgets */
.sidebar-widget form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.sidebar-widget input[type="text"],
.sidebar-widget input[type="email"],
.sidebar-widget textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.sidebar-widget textarea {
  min-height: 120px;
  resize: vertical;
}

.sidebar-widget input[type="text"]:focus,
.sidebar-widget input[type="email"]:focus,
.sidebar-widget textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(61, 37, 0, 0.06);
}

.sidebar-widget .btn {
  background: var(--primary-brown);
  color: var(--text-color-dark);
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.12s ease,
    opacity 0.12s ease;
}

.sidebar-widget .btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.sidebar-widget .form-note {
  font-size: 0.85rem;
  color: var(--text-color-light);
}

@media (max-width: 900px) {
  .sidebar {
    border-right: none;
    padding-right: 0;
  }

  .sidebar-widget .btn {
    width: 100%;
  }
}

/* Projects Section */
h1 {
  text-align: center;
  margin-bottom: 40px;
}

section {
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 15px;
}

.project {
  background: var(--card);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project h3 {
  margin: 0;
  color: var(--primary-green);
}

.project p {
  margin: 8px 0;
}

.project a {
  margin-right: 10px;
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: bold;
}

body {
  background-color: var(--page-bg);
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
}

.section-title {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-color-light);
  margin: 40px 6% 15px 6%;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 6% 60px 6%;
}

@media (max-width: 768px) {
  .projects-grid {
    padding: 0 5% 40px 5%;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    padding: 0 4% 30px 4%;
    gap: 12px;
  }
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 800px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .project-card {
    border-radius: 8px;
  }
}

.project-body {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .project-body {
    padding: 20px 24px;
  }
}

@media (max-width: 600px) {
  .project-body {
    padding: 16px 16px;
  }

  .project-body h3 {
    font-size: 1.1rem;
  }

  .project-body p {
    font-size: 0.9rem;
  }
}

/* Clearly separate tags from buttons */
.tags {
  margin: 5px 0 25px 0;
}

.tags span {
  background: rgba(61, 37, 0, 0.06);
  color: var(--primary-brown);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-right: 8px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .tags span {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .links {
    gap: 8px;
  }
}

.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-color-dark) !important;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color) !important;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.03);
  border-left: 1px solid var(--border-color);
  align-content: center;
}

@media (max-width: 800px) {
  .project-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 8px;
    gap: 2px;
  }
}

@media (max-width: 600px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    padding: 6px;
  }
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.project-card.simple {
  grid-template-columns: 1fr;
}
.project-card.simple .project-gallery {
  display: none;
}

.badge {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 8px;
  vertical-align: middle;
}
/* RESPONSIVE */
@media (max-width: 800px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 0 0;
  font-family: sans-serif;
}

/* Container for the columns */
.footer-container {
  color: var(--primary-brown);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Making it mobile responsive */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .footer-column {
    min-width: 45%;
    margin-bottom: 25px;
  }
}

@media (max-width: 600px) {
  .footer-container {
    padding: 0 15px 30px 15px;
  }

  .footer-column {
    min-width: 100%;
    margin-bottom: 20px;
  }
}

.footer-column h3 {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  color: var(--footer-text);
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .footer-column h3 {
    font-size: 1rem;
  }
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
  color: var(--text-color-light);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .footer-column ul li {
    font-size: 0.9rem;
  }
}

.social-links a {
  color: var(--footer-text);
  margin-right: 15px;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

@media (max-width: 600px) {
  .social-links a {
    margin-right: 12px;
    font-size: 0.9rem;
  }
}

.social-links a:hover {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.site-map-links {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding-bottom: 6px;
  color: var(--footer-text);
  transition: 0.3s;
}

@media (max-width: 600px) {
  .site-map-links {
    font-size: 0.9rem;
  }
}

/* The Darker Copyright Line */
.footer-bottom {
  background: var(--primary-brown);
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  border-top: 1px solid var(--primary-brown);
}

@media (max-width: 600px) {
  .footer-bottom {
    padding: 12px 10px;
    font-size: 12px;
  }
}
