/* =====================================
   GLOBAL BASE STYLES
===================================== */
body {
  margin: 0;
  padding: 0;
  font-family: Georgia, serif;
  background-color: black;
  color: black;
  margin-top: 120px;

}

html {
  scroll-behavior: smooth;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.section-divider {
  border: none;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, goldenrod 25%, maroon 75%, transparent 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  width: 100%;
  margin: 60px auto;
  border-radius: 2px;
}

/* =======================
   Business-Professional FX
   ======================= */

header {
  transition: box-shadow .25s ease, background-color .25s ease, backdrop-filter .25s ease;
}
header.scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  background-color: rgba(0,0,0,.85);
}

/* Progress bar (top of page) */
#progressbar {
  position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, goldenrod, maroon);
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* Scroll reveal (prefers-reduced-motion aware) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.show { opacity: 1; transform: translateY(0); }
}

/* =====================================
   PORTFOLIO SECTION
===================================== */
.portfolio-section {
  padding: 60px 20px;
  max-width: 1300px;
  margin: auto;
  
}

/* =====================================
   ABOUT ME SECTION STYLES
===================================== */
.about-me-section {
    /*background: beige;*/
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-width: 1300px;
    margin: 5px auto;
  }
  
  .about-me-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
  }
  
  .about-me-photo {
    flex: 1 1 200px;
    text-align: center;
  }
  
  .about-me-photo img {
    width: 200px;
    height: 200px;
    border: 3px solid goldenrod;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .about-me-photo h3 {
    margin-top: 15px;
    font-size: 30px;
    color: maroon;
  }
  
  .about-me-photo .subtitle {
    color: gray;
    font-size: 16px;
    margin-top: 5px;
  }
  
  .about-me-details {
    flex: 2 1 600px;
    text-align: left;
  }
  
  .about-me-details h2 {
    color: maroon;
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  .about-me-details p {
    font-size: 17px;
    color: beige;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  
  .about-facts h4 {
    color: goldenrod;
    margin-bottom: 10px;
    font-size: 18px;
  }
  
  .about-facts ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
  }
  
  .about-facts li {
    color: white;
    margin-bottom: 10px;
    font-size: 16px;
    padding-left: 20px;
    position: relative;
  }
  
  .about-facts li::before {
    /*content: "✔";*/
    content: "*";
    color: maroon;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
  }

  .resume-button {
    display:inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    font-size: 20px;
    font-weight: bold;
    background-color: goldenrod;
    color: maroon;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }
  
  .resume-button:hover {
    background-color: maroon;
    color: white;
  }
  
/* =====================================
   CORE TECHNOLOGIES SECTION
===================================== */
.core-tech-section {
    padding: 10px 20px;
    max-width: 1300px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  }
  
  .core-tech-section h2 {
    font-size: 40px;
    color: goldenrod;
    margin-bottom: 10px;
  }
  
  .core-tech-section .tech-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.6;
    color: beige;
  }
  
  .tech-grid {
    display: flex;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .tech-card {
    /*background: wheat;*/
    background: beige;
    border: 5px solid goldenrod;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
  }
  
  .tech-card:hover {
    transform: translateY(-5px);
  }
  
  .tech-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 3px solid maroon;
  }
  
  .tech-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: maroon;
  }
  
  .tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .tech-card li {
    margin-bottom: 10px;
    font-size: 15px;
    color: black;
  }

/* =====================================
   PROJECTS SECTION 
===================================== */

.projects-section {
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  max-width: 1300px;
  margin: 8px auto;
}

.projects-section h2 {
  font-size: 40px;
  color: maroon;
  margin-bottom: 10px;
}

.section-description {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px auto;
  font-size: 17px;
  color: beige;
}

/* ---------- Grid of cards (side-by-side) ---------- */
.projects-grid {
  --card-w: 560px;
  --card-h: 360px;
  --gap: 28px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-w), 1fr));
  gap: var(--gap);
}

/* ---------- Card ---------- */
.project-card {
  background: beige;
  border: 3px solid maroon;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: var(--card-h);
  display: block;
}

.project-card:hover {
  border: 3px solid goldenrod;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.project-image {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  min-height: var(--card-h);
  box-sizing: border-box;
  background: transparent !important;
}

.project-image > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid goldenrod;
  display: block;
}

.project-info {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 0;
}

.project-info h3 {
  font-size: 26px;
  margin: 0;
  color: goldenrod;
}

.project-info > p {
  margin: 0;
  color: black;
  line-height: 1.5;
}

.project-info > ul {
  margin: 0;
  padding-left: 18px;
  color: black;
  overflow: auto; 
  min-height: 0;
}

.project-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.project-buttons a {
  text-decoration: none;
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  background-color: maroon;
  color: goldenrod;
  border: 2px solid transparent;
  white-space: nowrap;
}

.project-buttons a:hover {
  background-color: maroon;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

.project-buttons a .icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
}


  /* =====================================
   CONTACT PAGE SECTION STYLES
===================================== */
.contact-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.contact-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: maroon;
}

.contact-info-form {
  background-color: beige;
  border: 5px solid maroon;
  border-radius: 10px;
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-form label {
  display: block;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.contact-info-form input,
.contact-info-form select,
.contact-info-form textarea {
  width: 95%;
  padding: 12px 14px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: Georgia, serif;
  transition: border-color 0.3s ease;
}

.contact-info-form input:focus,
.contact-info-form select:focus,
.contact-info-form textarea:focus {
  border-color: goldenrod;
  outline: none;
}

.contact-info-form textarea {
  resize: vertical;
  min-height: 90px;
}

.submit-container {
  text-align: center;
  margin-top: 30px;
}

.submit-button {
  background-color: goldenrod;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: maroon;
}

/* =====================================
   BACK TO TOP BUTTON
===================================== */
#backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 999;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: beige;
  color: goldenrod;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: opacity transform 0.3s ease;
}

#backToTop:hover {
  background-color: #555;
  color: white;
}

#backToTop ion-icon {
  font-size: 24px;
  vertical-align: middle;
}


/* ===============================
    MEDIA QUERIES
 =============================== */
 
 /* Responsive for Tablets and Phones (480px to 1024px) */
 @media (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo img {
    width: 250px;
    height: auto;
    display: block;
  }

  ul.nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: black;
    border: 2px solid goldenrod;
    border-radius: 8px;
    padding: 20px;
    z-index: 999;
  }

  ul.nav li {
    margin-bottom: 15px;
  }

  ul.nav.show {
    display: flex;
  }

  .about-me-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-me-details {
    flex: 1 1 100%;
    text-align: left;
  }

  .about-me-photo img {
    width: 150px;
    height: 150px;
  }

  .tech-grid {
    grid-column: span 4;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card img {
    height: auto;
  }

  .resume-button {
    font-size: 18px;
    padding: 10px 16px;
  }

  .contact-info-form {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .contact-info-form label {
    font-size: 16px;
    margin-top: 15px;
  }
  
  .contact-info-form input,
  .contact-info-form select,
  .contact-info-form textarea {
    width: 95%;
    font-size: 15px;
    padding: 10px 12px;
  }
  
  .submit-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  #backToTop {
    bottom: 20px;
    right: 20px;
 
 }

}