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

}

html {
  scroll-behavior: smooth;
}

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

.hidden {
  display: none;
}

/* =====================================
   HEADER & NAVIGATION
===================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  border: 3px solid goldenrod;
  border-radius: 1px;
  padding: 10px;
  margin: 0; /* Remove margin to avoid shifting */
  box-sizing: border-box; /* Ensures border/padding don't overflow */
  z-index: 1000; /* ensures it's above other content */
}

/* Hamburger style */
.hamburger {
  display: none;
  font-size: 30px;
  color: goldenrod;
  cursor: pointer;
  padding: 10px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 250px;
  height: auto;
  border-radius: 4px;
}

ul.nav {
  list-style: none;
  display: flex;
  gap: 50px;
  padding: 0;
  margin: 0;
}

ul.nav li {
  display: inline-block;
}

ul.nav li a {
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: goldenrod;
  padding: 10px;
  transition: transform 0.3s ease;
}

ul.nav li a:hover,
ul.nav li.active a {
  color: maroon;
  font-weight: bold;
  padding: 5px;
  border-radius: 4px;
  padding: 5px;
  transition: 0.3s ease;
}




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

/* =====================================
   ABOUT ME SECTION STYLES
===================================== */
.about-me-section {
    background: beige;
    padding: 60px 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: 24px;
    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: 35px;
    margin-bottom: 10px;
  }
  
  .about-me-details p {
    font-size: 16px;
    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 {
    margin-bottom: 10px;
    font-size: 15px;
    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: 25px;
    font-weight: bold;
    background-color: goldenrod;
    color: white;
    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: 60px 20px;
    background-color: beige;
    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: 32px;
    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: #444;
  }
  
  .tech-grid {
    display: flex;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .tech-card {
    background: wheat;
    border: 3px solid maroon;
    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: 2px 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: #333;
  }

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

.projects-section {
    background: beige;
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-width: 1300px;
    margin: 5px auto;
  }

  .projects-section h2 {
    font-size: 32px;
    color: maroon;
    margin-bottom: 10px;
  }
  
  .section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1rem;
    color: #444;
  }
  
  .projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  
  .project-card {
    background: wheat;
    border: 3px solid goldenrod;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
  }  
  
  .project-card:hover {
    transform: translateY(-5px);
  }
  
  .project-image {
    width: 100%;
    text-align: center;
    padding-top: 20px;
  }
  

  .project-card img {
    width: 90%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid goldenrod;
  }
  
  
  .project-info {
    padding: 20px;
    flex-grow: 1;
  }
  
  .project-info h3 {
    font-size: 25px;
    margin-bottom: 15px;
    color: maroon;  
}
  
  .project-info ul {
    text-align: left;
    padding-left: 20px;
    margin: 10px 0;
    
  }
  
  .project-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
  }
  
  .project-buttons a {
    text-decoration: none;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease;
    background-color: goldenrod;
    color: white;
  }

  .project-buttons a .icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
    /*filter: brightness(0) invert(1); /* Makes icon white on dark btn */
  }

  .project-buttons a:hover {
    background-color: maroon;
  }


  /* =====================================
   CONTACT PAGE SECTION STYLES
===================================== */
.contact-section {
  /*background: beige;*/
  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 FORM STYLES
===================================== */
.contact-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: maroon;
}

.contact-info-form {
  /*background: #fdf5e6;*/
  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: 120px;
}

.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;
}

/* Close button (if using modal style form) */
.contact-content .close-button {
  font-size: 26px;
  color: maroon;
  float: right;
  cursor: pointer;
  margin-top: -10px;
  margin-right: -10px;
}

/* =====================================
   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;
}


/* =====================================
   FOOTER STYLES
===================================== */
.footer {
  background: url('Images/background.jpg') no-repeat center center/cover;
  padding: 1rem 2rem;
  color: beige;
  position: relative;
  margin-top: 1rem;
}

.footer-overlay {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
  overflow: auto;
}

.footer-intro {
  flex: 1 1 100%;
  max-width: 100%;
  margin-bottom: 2rem;
}

.footer-intro h2 {
  color: maroon;
  margin-bottom: 0.5rem;
}

.footer-intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 40px;
  height: auto;
  border-radius: 4px;
}

.footer-brand h2 {
  color: maroon;
  margin: 0;
}


.footer-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-sections > div {
  flex: 1 1 200px;
}

.footer-sections h3 {
  color: goldenrod;
  margin-bottom: 0.5rem;
}

.footer-sections ul {
  list-style: none;
  padding: 0;
  margin: 5;
}

.footer-sections a {
  color: beige;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-sections a:hover {
  /*background-color: beige;*/
  color: maroon;
  text-decoration: none;
  font-weight: bold;
  padding: 5px;
  border-radius: 4px;
  transition: 0.3s ease;
}

.footer-rights {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid goldenrod;
}

.footer-rights p {
  color: beige;
  font-size: 0.95rem;
  margin: 0;
}

/* ===============================
    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 {
    flex-direction: column;
    align-items: center;
  }

  .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;
 
 }

}