/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

/* Container Helpers */
.nav-container,
.welcome-container,
.about-content,
.services-container,
.footer-container,
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  background-color: rgb(0, 0, 0);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav ul li a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: #ff5722;
  outline: none;
}
.welcome-section {
  position: relative;
  color: white;
  padding: 120px 50px 100px 50px;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
  text-align: center;
  background: url('images/pm3.webp') no-repeat center/cover;
  background-size: cover;
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* black overlay with 50% opacity */
  z-index: 0;
}

.welcome-section > * {
  position: relative; /* ensures text is above overlay */
  z-index: 1;
}


.welcome-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.welcome-section h1 .highlight {
  color: #ff5722;
}


.hire-me-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 20px;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.hire-me-cta a.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ff5722;
  color: white;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.hire-me-cta a.button:hover {
  background-color: #a82d07;
}

.hire-me-cta a.button svg {
  width: 16px;
  height: 16px;
  fill: white;
}


.about-me-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 60px 10%;
  gap: 40px;
}

.about-left {
  flex: 1 1 55%;
}

.about-right {
  flex: 1 1 35%;
  text-align: center;
}

.about-right img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(192 216 255 / 30%);
  text-align: left;
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
}

.info-box i {
  font-size: 24px;
  color: #f54e1f;
  margin-bottom: 10px;
  display: inline-block;
}

.info-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.info-box p {
  font-size: 16px;
  line-height: 1.4;
}


.services-container {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  grid-template-rows: auto auto;
  gap: 30px 40px;
  justify-content: center; /* center horizontally */
  align-items: center;     /* vertically center rows */
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  grid-template-areas:
    "box1 box2 box3"
    ".    box4 box5";
}

.service-box:nth-child(1) { grid-area: box1; }
.service-box:nth-child(2) { grid-area: box2; }
.service-box:nth-child(3) { grid-area: box3; }
.service-box:nth-child(4) { grid-area: box4; }
.service-box:nth-child(5) { grid-area: box5; }

.service-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(192 216 255 / 30%);
  padding: 35px 40px;
  text-align: center;
  cursor: pointer;
  transition: 0.4s ease;
}

.service-box:hover {
  background: #ff5722;
  color: white;
}

.service-box .icon {
  font-size: 40px;
  color: red;
  margin-bottom: 15px;
}

.service-box h2 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

.service-box p {
  font-size: 15px;
  font-weight: 400;
  color: #000000;
}


/* PORTFOLIO SECTION */
.portfolio {
  display: flex;
  gap: 40px;
  padding: 80px 20px;
  flex-wrap: wrap;
  background-color: white;
}




.portfolio-right {
  flex: 1 1 600px;
  min-width: 320px;
}

.portfolio-right .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.grid-item img {
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.grid-item img:hover,
.grid-item img:focus {
  transform: scale(1.05);
  outline: none;
}



/* === CONTACT SECTION === */

.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 10%;
  justify-content: space-between;
}

.form-container,
.info-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  flex: 1 1 45%;
  box-shadow: 0 0 15px rgb(192 216 255 / 30%);
}

.form-container h2,
.info-container h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.highlight {
  color: green;
  font-size: 18px;
}

.name-fields {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.send-btn {
  background: #f54e1f;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.info-container p {
  font-size: 16px;
  margin: 10px 0;
}

.info-container i {
  margin-right: 8px;
  color: #333;
}

.video-box {
  margin-top: 20px;
  background: #f0f0f0;
  padding: 15px;
  border-radius: 12px;
  color: #111;
}

/* FOOTER */
.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 280px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #ff5722;
}

.footer-column p,
.footer-column ul {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links li a:hover,
.footer-links li a:focus {
  color: #ff5722;
  outline: none;
}

.footer-bottom {
  margin-top: 35px;
  border-top: 1px solid #333;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #777;
}

.social-icons a {
  margin-left: 15px;
  color: #ccc;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
  color: #ff5722;
  outline: none;
}

/* Accessibility Focus Style */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px dashed #ff5722;
  outline-offset: 3px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .portfolio-right .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* NAV */
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  /* WELCOME */
  .welcome-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image-section img {
    width: 250px;
    margin-bottom: 25px;
  }

  /* ABOUT */
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .image-column img {
    width: 100%;
    max-width: 320px;
  }

 
/* Responsive: stack boxes on smaller screens */
@media (max-width: 850px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "box1 box2"
      "box3 box4"
      ". box5";
    gap: 25px 20px;
  }
}

@media (max-width: 500px) {
  .services-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "box1"
      "box2"
      "box3"
      "box4"
      "box5";
  }

  .service-box {
    width: 100%;
    max-width: 350px;
  }
}


  /* PORTFOLIO */
  .portfolio {
    flex-direction: column;
  }

  .portfolio-left,
  .portfolio-right {
    width: 100%;
    min-width: auto;
  }

  .portfolio-right .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CONTACT */
  .contact-container {
    flex-direction: column;
  }

  .form-section,
  .info-section {
    width: 100%;
  }

  .name-fields {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-right .grid {
    grid-template-columns: 1fr;
  }
}
