:root {
  --text-color: #1a1c20;
  --link-color: #3e8767;
  --background-color: #eeeff1;
  color-scheme: light !important; /* Helps signal browsers to use light mode */
}

/* Force light mode on html and body regardless of browser settings */
html,
body {
  color-scheme: light !important;
  background-color: var(--background-color) !important;
  color: var(--text-color) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  max-width: 1400px;
  margin: 0 auto;
}

/* Force light mode even if browser/OS is dark */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
  }

  /* Only apply green to body links, not navbar links */
  main a {
    color: var(--link-color) !important;
  }

  img,
  picture,
  video,
  canvas {
    filter: none !important;
  }
}

a {
  color: var(--link-color);
  text-decoration: none;
}

/* Navbar container */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 80px;
}

/* Left side — Sara Kaneki */
nav .left > a {
  color: #1a1c20;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

/* Right side links */
nav .right {
  display: flex; /* force horizontal layout */
  flex-direction: row; /* row direction */
  align-items: center; /* vertical centering */
  gap: 20px; /* spacing between links */
}

/* Right side links styling */
nav .right > a {
  color: #1a1c20;
  display: flex; /* inline-flex for icon + text */
  align-items: center;
  gap: 5px;
  font-weight: 500;
  transition: color 0.2s;
}

/* Hover effect */
nav .right > a:hover {
  color: #3e8767;
}

/* Email button styling */
nav .right > a.email-btn {
  background-color: #3e8767;
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
  transition: background-color 0.2s, color 0.2s;
}

nav .right > a.email-btn:hover {
  background-color: #2f6b52;
}

/* Icons inside links */
nav .right > a i {
  font-size: 18px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  nav {
    padding: 0 20px;
  }

  nav .left > a {
    font-size: 24px;
  }

  nav .right {
    flex-direction: row; /* keep horizontal on mobile */
    align-items: center;
    gap: 15px;
  }

  nav .right > a span {
    display: none; /* hide text on very small screens */
  }
}

/* SECTION 1: Hero & AWS Architecture */
.hero-section {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 60px;
  padding: 50px 80px;
  flex-wrap: nowrap;
  flex-direction: row;
}

.hero-text {
  flex: 1 1 550px; /* allow text to shrink */
  max-width: 100%;
}

.hero-text h2 {
  font-size: 40px; /* hi I'm sara text */
  margin-bottom: 20px;
  white-space: nowrap; /* prevents the heading from wrapping too early */
}

.hero-text p {
  font-size: 20px;
  line-height: 1.6;
}

.hero-image {
  flex: 1 1 520px; /* allow image to shrink too */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-image img.architecture-diagram {
  width: 100%;
  height: auto;
}

.diagram-caption {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  max-width: 100%;
  width: 100%; /* ensures it spans full width of container */
  text-align: center;
  margin-top: 8px; /* optional spacing from image */
}

/* Mobile responsiveness */
@media (max-width: 740px) {
  .hero-section {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
  }

  .hero-text,
  .hero-image {
    flex: 1 1 100%;
  }

  .hero-image img.architecture-diagram {
    width: 95%;
    max-width: none;
    margin-bottom: 20px;
  }
}
/* SECTION 2 & 3: Skills & Certifications */
.skills-section,
.certifications-section {
  padding: 0 50px;
  margin-bottom: 50px;
}

.skills-section h2,
.certifications-section h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 10px;
}

.skills-section .text,
.certifications-section .text {
  text-align: center;
  margin-bottom: 10px;
}

.skills-section .cells,
.certifications-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.skills-section .cell,
.certifications-section .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 180px;
  padding: 8px 16px;
  margin: 5px;
  border: 1.5px solid #d3d3d3;
  border-radius: 5px;
}

.skills-section .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.certifications-section .cell img {
  width: 50px; /* Adjust to the desired size */
  height: 50px; /* Ensures uniform sizing */
  object-fit: contain; /* Keeps aspect ratio */
  border-radius: 2px;
}

.skills-section .cell span {
  font-size: 18px;
}

.certifications-section .cell span {
  font-size: 16 xpx;
}

/* SECTION 4: Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

textarea.form-control {
  min-height: 150px;
}

.submit-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #555;
}

/* RESPONSIVE DESIGN */
@media (max-width: 740px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-section .headshot img {
    width: 300px;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  .skills-section,
  .certifications-section {
    padding: 0 20px;
  }

  .skills-section .cell span,
  .certifications-section .cell span {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
  }
}
