/* Bento-style skills grid */
.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0 0 0;
}

/* Flip card container */
.skill-card {
  perspective: 1200px;
  outline: none;
}
.skill-card:focus {
  box-shadow: none;
}
.skill-card-inner {
  position: relative;
  width: 100%;
  height: 210px;
  transition: transform 0.6s cubic-bezier(.77,0,.18,1);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.skill-card.flipped .skill-card-inner,
.skill-card:hover .skill-card-inner,
.skill-card:focus .skill-card-inner {
  transform: rotateY(180deg);
}
.skill-card-front, .skill-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(182,137,91,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  background: #f3ede7;
  color: #222;
  font-weight: 700;
  font-size: 1.08em;
  text-align: center;
  opacity: 1;
  transition: box-shadow 0.2s, background 0.18s, color 0.18s;
}
.skill-card-front i {
  font-size: 2.2em;
  margin-bottom: 0.7em;
  color: #b6895b !important;
}
.skill-card-back {
  background: #fff;
  color: #6b4b2a;
  transform: rotateY(180deg);
  font-weight: 500;
  font-size: 1em;
  box-shadow: 0 4px 16px rgba(182,137,91,0.13), 0 2px 8px rgba(0,0,0,0.10);
}
.skill-card .skill-desc {
  margin-top: 0.7em;
  font-size: 1.05em;
  color: inherit;
  text-align: center;
  opacity: 0.92;
}
/* Fade-in animation */
.skill-card {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(.77,0,.18,1), transform 0.6s cubic-bezier(.77,0,.18,1);
}
.skill-card.visible {
  opacity: 1;
  transform: scale(1);
}
/* Skill name styling for bento-box look */
.about-box .skill-badge .skill-name {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 1.08em;
  color: #222;
  margin-bottom: 0.3em;
}
.hero-bg-dots {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  /* transition removed: no fade effect */
}
.carousel-caption, .carousel-label {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  color: #6b4b2a;
  padding: 0.5em 1.2em;
  border-radius: 18px;
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(182,137,91,0.10);
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0.96;
  z-index: 1;
  margin-top: 0.5em;
}
@media (max-width: 700px) {
  .carousel-caption, .carousel-label {
    display: none !important;
  }
  .carousel-item img {
    width: 100vw;
    height: auto;
    aspect-ratio: 2/1;
    max-width: 100vw;
    max-height: 60vw;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}
.carousel-item {
  position: relative;
}
.about-box ul li br {
  display: block;
  margin: 0.1em 0 0.1em 0;
  text-align: right;
}
/* About Section Boxes */
.about-box {
  background: #f8f6f3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  overflow: visible;
}
/* About Section Boxes */
.about-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #b6895b;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* About Section Skills as inline badges */
/* About Section Skills as interactive badges with pop-up descriptions */
.about-box .skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.2rem 0 0 0;
}
.about-box .skill-badge {
  position: relative;
  display: flex;
  align-items: center;
  background: #f3ede7;
  color: #222;
  border-radius: 24px;
  padding: 0.7em 1.6em 0.7em 1.2em;
  font-size: 1.18rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 0.2em;
}
.about-box .skill-badge i {
  color: #b6895b;
  font-size: 1.35rem;
  margin-right: 0.7em;
  transition: transform 0.2s;
}
.about-box .skill-badge:hover {
  background: #e9e2d7;
  transform: scale(1.08);
  z-index: 2;
}
.about-box .skill-badge:hover i {
  transform: scale(1.25);
}
.about-box .skill-badge .skill-desc {
  display: none;
  position: fixed;
  left: 50%;
  top: unset;
  bottom: calc(65px);
  transform: translateX(-50%);
  /* Appear above the badge, not covering it */
  min-width: 220px;
  max-width: 340px;
  width: max-content;
  background: #fff;
  color: #6b4b2a;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(182,137,91,0.13), 0 2px 8px rgba(0,0,0,0.10);
  padding: 1em 1.3em;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  pointer-events: none;
  opacity: 0;
  z-index: 3000;
  transition: opacity 0.18s;
  letter-spacing: 0.01em;
}
.about-box .skill-badge:hover .skill-desc {
  display: block;
  opacity: 1;
}
/* Carousel Styles */
.carousel {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1);
}
.carousel-item {
  min-width: 100%;
  transition: transform 0.3s;
  cursor: pointer;
  user-select: none;
}
/* Make carousel images cover the 1200x600 area, zooming and cropping as needed */
.carousel-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  color: #b6895b;
  padding: 0.3em 0.7em;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  transition: background 0.2s;
}
.carousel-arrow.left { left: 10px; }
.carousel-arrow.right { right: 10px; }
.carousel-arrow:hover { background: #f3ede7; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0 0;
}
.carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dots button.active {
  background: #b6895b;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 2100;
  background: none;
  border: none;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 2.5rem;
  color: #b6895b;
  padding: 0.2em 0.6em;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2100;
  transition: background 0.2s;
}
.lightbox-arrow.left { left: 30px; }
.lightbox-arrow.right { right: 30px; }
.lightbox-arrow:hover { background: #f3ede7; }

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #faf8f6;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  z-index: 2000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links li a {
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links li a:hover {
  color: #b6895b;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #222;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: clip-path 0.7s cubic-bezier(.77,0,.18,1);
  clip-path: inset(0 0 0 0);
.hero-section.covered {
  clip-path: inset(0 0 100% 0);
}
  background-attachment: fixed;
  will-change: background-position;
  transition: background-position 0.3s cubic-bezier(.77,0,.18,1);
}
.hero-bg {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-subheadline {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 1.2em 0 1.5em 0;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-subheadline {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 1.2em 0 1.5em 0;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.tagline {
  font-size: 1.3rem;
  color: #b6895b;
  margin-bottom: 1.5rem;
}
.cta-btn {
  display: inline-block;
  background: #b6895b;
  color: #fff;
  padding: 0.8rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.cta-btn:hover {
  background: #a0763c;
}

/* About Section */
/* About Section */
.about-section {
  padding: 4rem 0 2rem 0;
  background: #fff;
  position: relative;
  z-index: auto;
}
.about-section .container,
.gallery-section .container,
.contact-section .container,
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about-section p {
  margin-bottom: 1.5rem;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  font-size: 1.1rem;
}
.skills-list li {
  color: #222;
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 0 2rem 0;
  background: #faf8f6;
  position: relative;
  z-index: 2;
}
.gallery-section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fff;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}
.gallery-item img:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact-section {
  padding: 4rem 0 2rem 0;
  background: #fff;
  position: relative;
  z-index: 2;
}
.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
}
.contact-form button {
  background: #b6895b;
  color: #fff;
  border: none;
  padding: 0.8rem 0;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #a0763c;
}

/* Footer */
.footer {
  background: #f3ede7;
  padding: 2rem 0 1rem 0;
  text-align: center;
  font-size: 1rem;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.5rem;
}
.social-icons a {
  color: #b6895b;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.social-icons a:hover {
  color: #a0763c;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav-container {
    padding: 1rem;
  }
  .gallery-grid {
    gap: 1rem;
  }
}
@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100vw;
    background: #fff;
    flex-direction: column;
    gap: 1.5rem;
    width: 200px;
    height: 100vh;
    padding: 2rem 1rem;
    box-shadow: -2px 0 8px rgba(0,0,0,0.04);
    transition: right 0.3s;
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .about-section, .gallery-section, .contact-section {
    padding: 2.5rem 0 1rem 0;
  }
}
