:root {
  --caramel: #AB7743;
  --espresso: #4C2B08;
  --almond: #B7957F;
  --vanilla: #D7BDA6;
  --coffee: #6D3914;
}

/* GENERAL */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--vanilla);
  color: var(--espresso);
}
.lock-scroll { overflow: hidden; }
.hidden { display: none; }

/* NAVBAR */
.navbar {
  background: var(--coffee);
  color: var(--vanilla);
  padding: 2px 5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--vanilla);
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--caramel);
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.8s ease;
}

.hero h2 {
  font-size: 2.8rem;
  margin: 0.5rem 0;
}

.hero h2 span {
  color: var(--caramel);
}

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

.hero button {
  padding: 0.8rem 2rem;
  background: var(--espresso);
  color: var(--vanilla);
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover {
  background: var(--caramel);
  color: var(--espresso);
}

/* SLIDE-UP */
.slide-up {
  transform: translateY(-100vh);
  pointer-events: none;
}

/* MAIN CONTENT */
#main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 60px 20px;
  text-align: center;
  background: var(--vanilla);
  color: var(--espresso);
}

/* HOME INTRO */
.home-intro h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.home-intro p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.intro-image {
  width: 80%;
  max-width: 700px;
  border-radius: 20px;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.2);
}

/* CARDS */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.card {
  background: var(--almond);
  color: var(--espresso);
  width: 260px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-6px);
  background: var(--caramel);
  color: var(--espresso);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.4;
}

/* RESUME */
.resume {
  padding: 50px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--vanilla);
  color: var(--espresso);
}

.resume h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--coffee);
}

.resume h3 {
  font-size: 1.3rem;
}

.resume p, .resume ul {
  font-size: 1.1rem;
  line-height: 1.6;
}

.resume ul {
  padding-left: 20px;
  list-style: disc;
}

/* PHOTO GALLERY */
.gallery-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px 20px;
  box-sizing: border-box;
}

.gallery-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--coffee);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 160px;
  gap: 15px;
  width: 100%;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 4px 4px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-grid img:not(.tall):not(.wide):not(.big) {
  aspect-ratio: 1 / 1;
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}


/* CONTACT */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--coffee);
}

.contact-container p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.email-link {
  color: var(--espresso);
  font-weight: bold;
  text-decoration: none;
}

.email-link:hover {
  color: var(--caramel);
}

/* SOCIAL BUTTONS */
.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 30px;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--espresso);
  color: var(--vanilla);
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s, transform 0.2s;
}

.social-button:hover {
  background: var(--caramel);
  transform: translateY(-4px);
  color: var(--espresso);
}

.social-button img {
  width: 24px;
  height: 24px;
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  font-size: 1.1rem;
  border: 2px solid var(--almond);
  border-radius: 10px;
  background: white;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--caramel);
}

.contact-form button {
  background: var(--espresso);
  color: var(--vanilla);
  font-size: 1.2rem;
  padding: 15px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: var(--caramel);
  color: var(--espresso);
  transform: translateY(-3px);
}

/* BLOG */
.blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: left;
}

.blog-container h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--coffee);
}

.blog-post {
  background: var(--almond);
  color: var(--espresso);
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 15px;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.1);
}

.blog-post[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.blog-post[dir="ltr"] {
  direction: ltr;
  text-align: left;
}


.blog-post h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.blog-date {
  font-size: 0.9rem;
  color: var(--espresso);
  opacity: 0.7;
  margin-bottom: 10px;
}

.blog-post p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* PROJECT CARDS */
.project-card {
  background: var(--almond);
  color: var(--espresso);
  width: 100%;
  max-width: 1200px;
  margin: 0px auto;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  background: var(--caramel);
  color: var(--espresso);
}

.project-card h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: var(--coffee);
}

.project-card p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.github-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--espresso);
  color: var(--vanilla);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.3s, transform 0.2s;
}

.github-button:hover {
  background: var(--vanilla);
  color: var(--espresso);
  transform: translateY(-3px);
}

.github-button img {
  width: 24px;
  height: 24px;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.image-row img {
  width: 40%;
  border-radius: 15px;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.1);
}

