/* General styles for the entire site */
html, body {
  background-color: white;
  color: black;
}

body{
 padding-top: 56px; 
 position: relative;
 margin: 0;
}

strong{
  color: blue;
}

main{
  margin: 2rem;
}

/* Navigation styles */
nav a {
    display: inline-block;
    transition: transform 0.3s ease;
    border-radius: 50%;
  }

nav a:hover{ 
  text-decoration: underline;
  color: blue;
transform: translateY(-5px) scale(1.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.active{
  text-decoration: underline;
  color: darkblue;
}

nav a:focus{
  text-decoration: none;
  color: darkblue;
}

/* Hero section styles */
#hero-section{ 
  background-image: url("images/heroimg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 2rem;
  height: 75vh;
  color: white;
}

#hero-section h1{
  font-size: 50px;
  color:white;
  text-align: center;
}

#hero-section p {
  font-size: 1.25rem;
  text-align: center;
}

#hero-section img {
  min-width: 150px;
  max-width: 15%;
  border: 10px solid transparent;
  border-radius: 50%;
  border-color: rgba(0, 0, 0, .2);
}

/* Section styles */
section {
  margin: 20px;
  padding: 1rem;
}

#main-section{
  padding-top: 2rem;
}

#mission-section{
  padding-top: 2rem;
}

#about-section{
  padding-top: 2rem;
}

/* Skills section styles */
#skills-section{
  padding-top: 2rem;
}

#html, #css, #bs, #photoshop, #js, #premiere, #jamf, #knox, #support, #figma {
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#js img {
  width: 128px; 
  height: auto;
}

#skills-section .col {
    transition: transform 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
    cursor: pointer;
  }

#skills-section .col:hover {
    translateY(-10px);
    scale: 1.05;
    box-shadow: 0 10px 20px rgba(0, 0, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, scale 0.3s ease;
  }

#html:hover, #css:hover, #js:hover, #bs:hover, #photoshop:hover, #premiere:hover, #jamf:hover, #knox:hover, #support:hover, #figma:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 15px rgba(0, 0, 255, 0.4);
  }

/* Projects section styles */
#projects-section{
  padding-top: 2rem;
}

#projects-section .container {
  padding: 2rem 1rem;
}

.projects {
  width: 200px; 
  height: 200px;
  border: 1px solid #ccc;
  margin: 10px;
  display: inline-block; 
  text-align: center;
  line-height: 200px; 
}

/* Contact section styles */
#contact-section{
  text-align: center;
  align-items: space-between;
  padding-top: 2rem;
}

#contact-section a{
  text-decoration: none;
}

#contact-section a:hover{
  text-decoration: none;
  color: black;
  transform: translateY(-5px) scale(1.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-section .row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

/* Flyers section styles */
#flyers-section {
  padding-top: 2rem;
}

.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    background-color: #000;
  }
  
.carousel-item img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

/* Contact form styles */
form{
  width: 90%;
  max-width: 800px;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin: 0 auto; 
  margin-top: 50px;
  margin-bottom: 50px;
  color: blue;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 2px dashed blue;
}

form #user-info{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group{
  display: flex;
  align-items: center;
  width: 100%;
}

#user-info {
  margin-bottom: 10px;
}

#user-info label {
  display: inline-block;
  width: 150px;
  text-align: left;
}

input:hover {
  box-shadow: 2px 2px 5px rgba(0, 0, 255, 0.3);
  border: 2px solid blue;
}

textarea:hover{
  box-shadow: 2px 2px 5px rgba(0, 0, 255, 0.3);
  border: 2px solid blue;
}

textarea.form-control {
  max-width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

#comment, textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid blue;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

::placeholder{
  color:lightblue;
  opacity: 0.8;
}

input:focus{
  color:blue;
}

.submit{
  color: white;
  background-color: blue;
  border: 2px solid blue;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit:hover {
  background-color: darkblue;
  transform: scale(1.05);
}

/* Footer styles */
footer{
  text-align: center;
  align-items: center;
  background-color: black;
  color: white;
  padding: 20px;
}

footer a{
  text-decoration: none;
  color: white;
}

footer a:hover{
  text-decoration: underline;
  color: white;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6{
  text-align: center;
  align-items: center;
  color:blue
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p{
  text-align: center;
  align-items: center;
  line-height: 1.6;
}

/* Image styles */
img{
  max-width: 100%;
  height: auto;
  width: auto;
}

.headshot {
  max-width: 50%;
  height: 25%;
  width: 25%;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border: 2px groove white;
}

/* Animation */
@keyframes fade{
  from{opacity: 0.4;}
  to{opacity: 1;}
}

/* Specific elements */
#flyer-2 {
  width: auto;
  height: auto;
  max-width: 500px;
  max-height: 375px;
}

#flyer-1{
  width: auto;
  height: auto;
  max-width: 500px;
  max-height: 375px;
}

main #gallery {
  margin-bottom: 100px;
}

.linkedin-icon{
  font-size: x-large;
}

/* Calculator link styles */
.calculator-link {
  text-decoration: none;
  color: blue;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-link:hover {
  transform: translateY(-8px) scale(1.05);
  color: blue;
  text-shadow: 0 5px 10px rgba(0, 0, 255, 0.3);
}

.calculator-link i {
  transition: transform 0.3s ease;
}

.calculator-link:hover i {
  transform: scale(1.1);
}

/* Image sizing for skills section */
#html img, #css img, #js img, #bs img, #photoshop img, #premiere img, #figma img, #jamf img, #knox img, #support img {
  max-width: 128px;
  width: 128px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Technical Support icon styling */
#support img {
  font-size: 4rem;
  color: #666;
  display: block;
  margin: 0 auto 1rem;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet and below (768px) */
@media screen and (max-width: 768px) {
  body {
    padding-top: 56px;
  }

  main {
    margin: 1rem;
  }

  section {
    margin: 10px;
    padding: 0.5rem;
  }

  /* Hero section adjustments */
  #hero-section {
    height: 60vh;
    padding: 1rem;
    gap: 15px;
  }

  #hero-section h1 {
    font-size: 2rem;
  }

  #hero-section p {
    font-size: 1rem;
  }

  #hero-section img {
    max-width: 35%;
    min-width: 120px;
  }

  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  /* Skills section */
  #skills-section .row {
    gap: 1rem;
  }

  #html, #css, #bs, #photoshop, #js, #premiere, #jamf, #knox, #support, #figma {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }

  /* Contact section */
  #contact-section .row {
    flex-direction: column;
    gap: 1.5rem;
  }

  #contact-section i {
    font-size: 2.5rem !important;
  }

  /* Carousel adjustments */
  .carousel-item {
    height: 400px;
  }

  /* Calculator link */
  .calculator-link i {
    font-size: 6rem !important;
  }
}

/* Mobile phones (576px and below) */
@media screen and (max-width: 576px) {
  body {
    padding-top: 56px;
  }

  main {
    margin: 0.5rem;
  }

  section {
    margin: 5px;
    padding: 0.5rem;
  }

  /* Hero section */
  #hero-section {
    height: 50vh;
    padding: 1rem 0.5rem;
    gap: 10px;
    background-attachment: scroll;
  }

  #hero-section h1 {
    font-size: 1.75rem;
  }

  #hero-section p {
    font-size: 0.9rem;
  }

  #hero-section img {
    max-width: 45%;
    min-width: 100px;
    border: 5px solid transparent;
  }

  /* Typography */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  /* Mission section text */
  #mission-section p br {
    display: none;
  }

  /* Skills section */
  #html, #css, #bs, #photoshop, #js, #premiere, #jamf, #knox, #support, #figma {
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  #html img, #css img, #js img, #bs img, #photoshop img, #premiere img, #figma img, #jamf img, #knox img, #support img {
    max-width: 96px;
    width: 96px;
  }

  #html p, #css p, #js p, #bs p, #photoshop p, #premiere p, #figma p, #jamf p, #knox p, #support p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Projects section */
  #projects-section .container {
    padding: 1rem 0.5rem;
  }

  #projects-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  #projects-section .lead {
    font-size: 1rem;
    text-align: left;
  }

  #projects-section h5 {
    text-align: left;
    font-size: 1.1rem;
  }

  #projects-section ul {
    padding-left: 1.5rem;
    text-align: left;
  }

  #projects-section ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  #projects-section small {
    font-size: 0.85rem;
  }

  /* Calculator link */
  .calculator-link i {
    font-size: 5rem !important;
  }

  .calculator-link p {
    font-size: 0.9rem;
  }

  /* Contact section */
  #contact-section .row {
    flex-direction: column;
    gap: 2rem;
  }

  #contact-section i {
    font-size: 3rem !important;
  }

  #contact-section h4 {
    font-size: 1rem;
  }

  /* Carousel */
  .carousel-item {
    height: 300px;
  }

  /* Flyers section */
  #flyers-section > p {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  #flyers-section > div > p {
    font-size: 0.9rem;
  }

  /* Tools & Platforms section */
  #skills-section .row div[class*='col-'] h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  #skills-section .row div[class*='col-'] h4 i {
    font-size: 1.5rem;
  }

  #skills-section .row div[class*='col-'] p {
    font-size: 0.85rem;
  }

  /* Form adjustments */
  form {
    width: 95%;
    padding: 15px;
  }
    
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }
  
  #user-info label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
  }
  
  .fname, .lname, .email2 {
    width: 100%;
    margin: 5px 0;
  }
  
  #comment, textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }
  
  input[type="submit"], .submit {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
  }

  /* Footer */
  footer {
    padding: 15px 10px;
    font-size: 0.9rem;
  }

  /* Resume iframe */
  iframe {
    height: 400px !important;
  }

  .text-center.mt-3.mb-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Navbar adjustments */
  .navbar-brand i {
    font-size: 1.5rem;
  }

  .nav-link {
    padding: 0.75rem 1rem;
  }

  /* Disable hover effects on mobile */
  #skills-section .col:hover,
  #html:hover, #css:hover, #js:hover, #bs:hover, 
  #photoshop:hover, #premiere:hover, #jamf:hover, 
  #knox:hover, #support:hover, #figma:hover {
    transform: none;
    box-shadow: none;
  }

  nav a:hover {
    transform: none;
  }

  .calculator-link:hover {
    transform: none;
  }

  #contact-section a:hover {
    transform: none;
  }
}

/* Extra small devices (400px and below) */
@media screen and (max-width: 400px) {
  #hero-section h1 {
    font-size: 1.5rem;
  }

  #hero-section p {
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .calculator-link i {
    font-size: 4rem !important;
  }

  #contact-section i {
    font-size: 2.5rem !important;
  }
}