/* CSS Reset (minimal) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background-color: #060223;
  color: #ffffff;
  line-height: 1.4;
}

/* Background Images */

.home-page {
  background-image: url('../Img/bg3.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

.projects-page {
  background-image: url('../Img/bg1.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-page {
  background-image: url('../Img/dark-geometric-background-with-copy-space.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}


.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1; /* behind content */
}

.content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: 30vh;
}

.site-header{
  background-color: #00011269;
  border-bottom: 0.1px solid #ffd9004f;
  padding-bottom: 10px;
}


/* Layout */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0.2rem;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: #ffffff;
}

/* Navigation */
.nav-list {
  list-style: none;
  display: flex;
  gap: 3rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: medium;
  border: 1px solid #00000000;
  border-radius: 5px;
  padding: 10px;
  color: #ffffff;
}

.nav-list a:focus,
.nav-list a:hover {
  border: 1px solid #f4d03f;
  border-radius: 5px;
  color: #060223;
  background-color: #f4d03f;
  transition-duration: 0.2s;
}

/* Hero */
.hero {
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
}

#welcome-heading {
  text-align: center;
  padding: 0px 10px;
  color: #f4d03f;
  display: inline-block;
}

/* About */
.about-section {
  padding: 0.3rem 0;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  flex-wrap: nowrap;
  align-items: center;
}

.typing {
  font-weight: 500;
  color: #f4d03f;
  white-space: nowrap;
}

.container>h2 {
  font-size: 1.8rem;
  border-bottom: #ccc 2px solid;
  border-radius: 1px;
  display: inline-block;
  padding: 0px 20px 0px 5px;
}


.profile-figure img {
  margin-top: 20px;
  width: 130px;
  border: 3px solid lightblue;
  border-radius: 20px;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-top: 5%;
}

.about-text p {
  text-align: justify;
  font-size: 1.2rem;
  padding-right: 20px;
}

/* Skills */
.skills-section {
  padding: 1rem 0 0 0;
}

.skill-item {
  position: relative;
  margin: 0;
  cursor: pointer;
}

/* Hide figcaption visually, keep for screen readers */
.skill-item figcaption,
.Cert-item figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tooltip */
.skill-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: #222;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show tooltip on hover AND keyboard focus */
.skill-item:hover .skill-tooltip,
.skill-item:focus-within .skill-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, 120px);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 0.2rem;
}

.skills-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 1rem;
}

.skills-grid img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(10%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skills-grid li:hover img {
  transform: scale(1.15);
  filter: grayscale(0%);
}

#jsimg {
  width: 105px;
  height: 105px;
}

#mysqlimg {
  width: 95px;
  height: 95px;
}

#reactimg {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  border: 2px solid #4993c7;
}

#javaimg {
  width: 123px;
  height: 123px;
}

#springbootimg {
  border: 2px solid lightgreen;
  border-radius: 50%;
}



/* CTA */
.cta-section {
  padding: 3rem 0;
}

.cta-flex {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid #f4d03f;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: #f4d03f;
  border-radius: 5px;
}

.btn:hover,
.btn:focus {
  background-color: #f4d03f;
  color: #000000;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background-color: #00000090;
  border-top: 1px solid #ffd90043;
  font-size: 0.9rem;
}

/* Accessibility Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ABOUT PAGE */
.Job-Title {
  font-size: 1.2rem;
  color: #f4d03f;
  margin-top: 0;
  margin-left: 5px;
}

#about-heading {
  margin-bottom: -8px;
  border-bottom: #ccc 2px solid;
  padding-left: 5px;
  font-size: 2rem;
  padding-right: 30px;
}

/* Experience Section */
.experience-card {
  padding: 1.5rem 0;
  line-height: 1.6;
  font-size: 1.1rem;
  border-bottom: 1px solid #444;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-role {
  font-size: 1.3rem;
  margin: 0;
}

.experience-company {
  font-style: italic;
  font-weight: normal;
  font-size: 1.4rem;
  color: #f4d03f;
}

.experience-duration {
  font-size: 1.1rem;
  color: #ccc;
  white-space: nowrap;
}

.experience-card p {
  margin-top: 0.4rem;
  text-align: justify;
}

/* Education Section */
.education-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid #444;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.education-institute {
  margin: 0;
  font-size: 1.3rem;
}

.education-duration {
  font-size: 1.1rem;
  color: #ccc;
  white-space: nowrap;
}

.education-details {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.education-degree {
  font-size: 1.2rem;
  color: #f4d03f;
}

.education-grade {
  font-size: 1.2rem;
  color: #ffffff;
  white-space: nowrap;
}

.soft-skill {
  background-color: #222;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin: 0.2rem;
  border: 1px solid #f4d03f;
}

.hobbies {
  background-color: #222;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  font-size: 1rem;
  display: inline-block;
  margin: 0.2rem;
  font-weight: bold;
  border: 2px solid #f4d03f;
}

/* ===== Certifications Grid ===== */
.cert-grid {
  list-style: none;
  /* 1. Remove bullet points */
  display: flex;
  /* 2. Horizontal layout */
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 2rem 0;
  flex-wrap: wrap;
  /* wraps nicely on smaller screens */
}

/* Individual certification */
.Cert-item {
  width: 180px;
  /* same visual footprint for all */
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Certification badge image */
#Certification-Badge {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Hover effect on image */
.Cert-item:hover #Certification-Badge {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Caption styling */
.Cert-item figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

/* ===== Tooltip ===== */
.Cert-tooltip {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

/* Tooltip arrow */
.Cert-tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #222 transparent;
}

/* Show tooltip on hover */
.Cert-item:hover .Cert-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}


/* ===== Social Links (About Section) ===== */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Icon box */
.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  margin-top: 0;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

/* Icon image */
.social-links img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Hover */
.social-links a:hover {
  transform: translateY(-4px);
  border-bottom: 1px solid #f4d03f;
}

/* Keyboard accessibility */
.social-links a:focus-visible {
  outline: 2px solid #f4d03f;
  outline-offset: 3px;
}

.nav-list a[aria-current="page"] {
  background-color: #f4d03f;
  color: #000;
  font-weight: 600;
}

/* ===== About Header Layout ===== */
.about-header {
  display: flex;
  max-width: 1100px;
  margin: auto;
  padding: 0.2rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* responsive */
}

/* Keeps text stacked */
.about-text-block {
  display: flex;
  flex-direction: column;
}

#projects-heading{
  color: #f4d03f;
}

.proj-title{
  font-size: 1.4rem;
  color: #f4d03f;
  margin: auto 0;
}

#last-proj-entry {
  margin-bottom: 50px;
}

#proj-title-DAC {
  margin-top: 10px;
}

.proj-card{
  border: 2px solid #f4d03f;
  margin: 20px auto;
  padding: 10px;
  max-width: 900px;
  border-radius: 10px;
  background-color: #000000aa;
  border-left: 10px solid #ffe864;
}

.proj-card p{
  line-height: 1.6;
}

.proj-card:hover{
  scale: 1.012;
  transform-origin: center;
  transition-duration: 0.2s;
  margin-bottom: 20px 0px;
}

.github-icon{
  margin: auto 0;
}

.github-icon:hover{
  transform: translateY(-4px);
  border-bottom: 1px solid #f4d03f;
  transition-duration: 0.2s;
  padding-top: 5px;
}
/* ================= CONTACT PAGE ================= */

.contact-main-heading{
  color: #f4d03f;
}

/* Wrapper + grid */
.contact-wrapper {
  padding: 0.5rem 0;
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Cards */
.contact-card,
.query-card {
  border: 1.5px solid #f4d03f;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  background: radial-gradient(circle at top, #08052e49, #05021c5c);
}

.contact-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= EMAIL ROW ================= */

.contact-email {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.3rem 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mail-icon {
  font-size: 3rem;            /* ⬅ reduced size */
  color: #f4d03f;
  flex-shrink: 0;                /* prevent icon distortion */
}

/* Text alignment consistency */
.contact-email a,
.contact-email span {
  margin-left: 0.75rem;
  color: #f4d03f;
  font-size: 1.25rem;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* ================= SOCIAL ICONS ================= */

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-socials a {
  width: 50px;
  height: 50px;
  border: 1px solid #f4d03f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4d03f;
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contact-socials a:hover {
  background-color: #f4d03f;
  color: #000;
  transform: translateY(-4px);
}

.contact-socials a:focus-visible {
  outline: 2px solid #f4d03f;
  outline-offset: 4px;
}

/* ================= QUERY FORM ================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  background-color: transparent;
  border: 1.4px solid #f4d03f;
  border-radius: 10px;
  padding: 0.8rem;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  color: #f4d03f;
  border: 1.4px solid lightblue;
}

.submit-button {
  background-color: #f4d03f;
  color: #060223;
  border: 1px solid #060223;
  text-align: center;
  padding: 0.8rem;
  width: 100px;
  font-size: 1.1rem;
  border-radius: 10px;
  margin: 0 auto;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
  background-color: #05021c;
  border: #f4d03f 1px solid;
  color: #f4d03f;
}

/* ================= SECTION ARROW ================= */

.section-arrow {
  display: flex;
  justify-content: center;
  margin: -1.25rem 0 0.5rem 0;
}

.section-arrow i {
  font-size: 5rem;
  color: #f4d03f;
  animation: bounce 1.5s infinite;
}

.social-icons {
  display: flex;
  flex-direction: row;          /* 👈 force horizontal */
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.social-icons a {
  width: 56px;
  height: 56px;
  border: 2px solid #f4d03f;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4d03f;
  font-size: 1.7rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: #f4d03f;
  color: #060223;
  transform: translateY(-3px);
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}


/* Mobile */
@media (max-width: 768px) {
  .contact-socials {
    flex-direction: column;
  }
}

/* RESPONSIVE STYLES */

/* Medium devices (tablets) */
@media (max-width: 992px) {
  #Certification-Badge {
    width: 150px;
  }

  main{
    padding: 0px 20px;
  }

  .Cert-item {
    width: 150px;
    height: 150px;
  }
}

/* Small devices (mobiles) */
@media (max-width: 576px) {
  #Certification-Badge {
    width: 120px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links img {
    width: 20px;
    height: 20px;
  }

  .cert-grid {
    gap: 1.5rem;
  }

  .Cert-item {
    width: 120px;
    height: 120px;
  }

  main{
    padding: 0px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing {
    border-right: none;
  }
}

/* Responsive: About Section for smaller devices */
@media (max-width: 768px) {

  /* Center everything inside the section */
  #about .container,
  .skills-section .container {
    text-align: center;
  }

  .about-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  main{
    padding: 0px 20px;
  }

  /* Properly center the heading + underline */
  #about h2,
  .skills-section h2 {
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Stack about content vertically */
  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .header-flex {
    flex-direction: column;
    gap: 1rem;
  }

  /* Paragraph stays justified */
  .about-text p {
    text-align: justify;
    padding: 0 12px;
  }

  /* Allow typing text to wrap */
  .typing {
    white-space: normal;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, 110px);
    justify-content: center;
    justify-items: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  .skills-grid {
    grid-template-columns: repeat(auto-fit, 130px);
    justify-content: center;
    justify-items: center;
  }

  main{
    padding: 0px 20px;
  }
}