/* -------------------------------
   Base Reset & Background
--------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Background Glow */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------
   Liquid Glass Effect
--------------------------------------------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(2px) saturate(180%); /* Added for Safari compatibility */
  backdrop-filter: blur(2px) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2), inset 0 4px 20px rgba(255, 255, 255, 0.3);
}

.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  -webkit-backdrop-filter: blur(1px); /* Added for Safari compatibility */
  backdrop-filter: blur(1px);
  box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
    inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
  opacity: 0.6;
  z-index: -1;
  filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
  pointer-events: none;
}

/* -------------------------------
   Header & Navigation
--------------------------------- */
header {
  width: 100%;
  text-align: center;
  margin-bottom: 1.25rem;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1em;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

nav a:hover {
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

/* -------------------------------
   Main Content Wrapper
--------------------------------- */
main.main-content {
  width: 100%;
  max-width: 1200px;
  flex: 1;
  padding: 2rem;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}


/* -------------------------------
   Title
--------------------------------- */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 0.5rem;
}

/* -------------------------------
   Layout Columns
--------------------------------- */
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.education-details {
  flex: 1;
  min-width: 280px;
}

.education-details h3 a {
  color: white;
  text-decoration: underline;
}

.education-details ul {
  padding-left: 1.2em;
  line-height: 1.6;
}

/* -------------------------------
   Certificate Images
--------------------------------- */
.image-section {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  padding: 1em 0;
}

.cert-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-section img {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  object-fit: contain;
}

/* Zoom & Border */
.image-section img:hover {
  transform: scale(1.75);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.google-cert { border: 4px solid #00c6ff; }
.greenville-associate { border: 4px solid #178eaf; }
.greenville-certificate { border: 4px solid #4c9db3; }
.testout-certificate { border: 4px solid #65a9bb; }
.sdcity-certificate { border: 4px solid #00ffd5; }
.HR-certificate{border: 4px solid #00ffd5; }

/* -------------------------------
   Canvas Footer Decoration
--------------------------------- */
.farmer-canvas-fullwidth {
  width: 100%;
  margin-top: auto; /* Push to bottom of flex container */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

canvas#farmerCanvas {
  width: 100%;
  height: 50px;
}

/* -------------------------------
   Footer
--------------------------------- */
footer {
  width: 100%;
  text-align: center;
  padding: 1em;
  margin-top: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* -------------------------------
   Responsive
--------------------------------- */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    margin: 0.3em;
  }
}
