/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

body, html {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Modern, easy-to-read typography */
  font-size: 16px; /* Adequate font size for readability */
  line-height: 1.6; /* Improved line spacing */
  color: #333; /* Softer text color for less strain */
  background: #f9f9f9; /* Light grey background for a modern look */
  padding-top: 60px; /* Spacing for fixed header */
}


header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #333; /* Dark background for header */
  color: white;
  padding: 10px 10px;
  text-align: center;
  z-index: 1000;
}

header h1, header p {
  margin: 0;
  padding: 0 20px;
}

section {
  margin: 20px auto;
  max-width: 800px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

section h2 {
  color: #333;
}

.profile-photo {
  float: left; /* This can be either 'left' or 'right' */
  width: 150px; /* Change this to the desired width */
  height: auto; /* Maintain aspect ratio */
  margin: 0 10px 10px 0; /* Provides space between the image and the text. Adjust as needed */
}

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #367c39; /* Darker shade for hover effect */
}

.social-media a img {
  width: 40px;
  margin: 0 10px;
}

.nav-menu {
  display: block;
  color: #4CAF50;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover {
  background: #f1f1f1;
}

/* Add to style.css */
.hamburger-menu {
  display: none; /* Hidden by default */
  font-size: 1.5rem; /* Hamburger size */
  background: transparent;
  border: none;
  color: white; /* Hamburger color */
  cursor: pointer;
  margin-right: 1em;
}

.portfolio-item {
  margin-bottom: 40px; /* Space between portfolio items */
}

.portfolio-item h2 {
  margin-bottom: 15px; /* Space between the title and the content */
}

.portfolio-content {
  display: flex; /* Using flexbox */
  align-items: center; /* Align items vertically in the center */
  gap: 20px; /* Space between the image and the description */
}

.portfolio-image {
  flex: 0 0 auto; /* Do not grow, do not shrink, and base size on content, taking up 40% of the flex container */
  width: 250px;
  height: auto; /* Maintain aspect ratio */
  border-radius: 5px; /* Optional: rounded corners for the image */
}

.portfolio-description {
  flex: 1; /* Grow to use remaining space */
  padding: 0 20px; /* Padding around the text */
}

.button {
  margin-top: 10px; /* Space above the button */
  padding: 10px 20px; /* Padding inside the button */
  background-color: #4CAF50; /* Background color */
  color: white; /* Text color */
  text-decoration: none; /* Remove underline from links */
  border-radius: 5px; /* Rounded corners */
  display: inline-block; /* Necessary for padding and margins to work */
}


/* Responsive style */
@media (max-width: 768px) {
  .hamburger-menu {
    display: inline-flex; /* Show hamburger menu on small screens */
  }

  .nav-menu {
    display: none; /* Hide nav links on small screens */
    position: absolute;
    right: 0;
    top: 60px; /* Adjust based on your header's height */
    background-color: #333; /* Background for dropdown */
  }

  .nav-menu a {
    display: block; /* Stack links vertically */
    text-align: left;
    padding: 10px;
    border-top: 1px solid white; /* Separator between links */
  }

  .nav-menu a:hover {
    background-color: #444; /* Slight change for hover */
  }

  .portfolio-content {
    flex-direction: column; /* Stack image and description vertically on small screens */
  }

  .portfolio-image {
    max-width: 100%; /* Full width on small screens */
  }

  .portfolio-description {
    text-align: center; /* Center the text for small screens */
  }

  .button {
    width: 100%; /* Full width button on small screens */
  }

}

@media screen and (min-width: 768px) {
  body {
    padding-top: 100px;
  }
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
