/* ==========================================================================
   Color Palette
   ========================================================================== */
/* 
  Primary Colors:
  - Light beige: #faedcd
  - Green: #6a994e
  - Background: #dedbd2
  - Accent green: #b0c4b1
  - Dark green: #4a5759
  - Medium green: #7d8e85
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */
html {
  box-sizing: border-box;
  font-family: "Playfair Display", Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: #dedbd2;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  height: 100%;
}

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

a {
  text-decoration: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(2rem, 5vw, 2.5rem);
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
}

h2 {
  text-align: left;
  margin: 20px 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.first-name,
.last-name {
  font-weight: 700;
  color: #555;
}

.keywords {
  display: flex;
  flex-direction: column;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-left {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-left a {
  color: #4a5759;
}

.nav-left a:hover {
  color: #b0c4b1;
}

.nav-center {
  display: flex;
  gap: 1.5rem;
  font-size: 1.2rem;
  flex-wrap: wrap;
}

.nav-center a {
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}

.nav-center a:hover {
  color: #b0c4b1;
}

.nav-right button {
  padding: 0.5rem 0.9rem;
  border: none;
  background-color: #4a5759;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Playfair Display", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.nav-right button:hover {
  background-color: #b0c4b1;
}

/* ==========================================================================
   Main Sections
   ========================================================================== */
.main-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background-color: #dedbd2;
  align-items: start;
    max-width: 1200px;  
  margin: 0 auto; 
}

.main-section-cv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.5rem;
  background-color: #dedbd2;
}

.text-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.image-column {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;  /* Remove padding */
  border-radius: 10px;
  width: 100%;
}

.image-column img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: #b0c4b1;  
  padding: 2rem;  
  border-radius: 10px;
}

/* ==========================================================================
   Containers
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
}

.cv-container {
  position: relative;
  padding: 0 1rem;
}

.hanging-indent {
  padding-left: 2rem;
  text-indent: -2rem;
}

.blog-container {
  text-align: center;
  max-width: 900px;
}

/* ==========================================================================
   Image Container
   ========================================================================== */
.image-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

/* ==========================================================================
   Blog Grid
   ========================================================================== */
.grid-container {
  margin: 0 auto;
  max-width: 1200px;
  display: grid;
  gap: 20px;
  padding: 1rem;
  grid-template-columns: 1fr;
}

.grid-item-header {
  grid-column: 1 / -1;
}

.grid-item {
  display: block;
  background-color: #7d8e85;
  border: 2px solid white;
  padding: 20px;
  color: inherit;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.grid-item:hover {
  background-color: #b0c4b1;
  transform: scale(1.02);
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.grid-item h3 {
  margin: 0.5rem 0;
}

.grid-item p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: #7d8e85;
  padding: 1rem;
  margin-top: 2rem;
}

.footer-line {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-content p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.socials ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.socials img {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Scroll Animation
   ========================================================================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet (640px+) */
@media (min-width: 640px) {
  .navbar {
    padding: 1.5rem 2rem;
  }

  .main-section,
  .main-section-cv {
    padding: 2rem;
  }

  .image-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop (768px+) */
@media (min-width: 768px) {
  .main-section {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }

  .image-column {
    max-width: 500px;
    margin: 0 auto;
  }

  .image-container {
    grid-template-columns: repeat(3, 1fr);  
  }
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
  .navbar {
    padding: 2rem;
  }

  .nav-center {
    gap: 2rem;
  }

  .main-section-cv {
    grid-template-columns: 0.5fr 1fr;
  }

  .hanging-indent {
    padding-left: 40px;
    text-indent: -40px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  footer {
    display: none;
  }

  body {
    background-color: white;
  }

  .main-section,
  .main-section-cv {
    grid-template-columns: 1fr;
  }
}