/*
Theme Name: portfolio
Theme URI: https://example.com/portfolio
Author: Muhammad Tariq
Author URI: https://example.com
Description: A simple WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myfirsttheme
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options
*/

/* Start writing your CSS below */

/* Global Reset */
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Noto Sans", sans-serif;
  color: white;
  background-color: black;
}

/* ================== Variables ================== */
:root {
  --primary-color: #476EAE;
  --secondary-color: #48B3AF;
  --tertiary-color: #A7E399;
  --quad-color: #F6FF99;
  --main-padding: 2vw 8vw;
  --button-hover: #343525;
  --button-padding: 0.5vw 1vw;
  --button-radius: 2vw;
}

/* ================== Navbar ================== */
.nav-div {
  padding: var(--main-padding);
  background-color: black;
  width:100vw;
}

.main-nav-area{
  display: flex;
  align-items: center;
  justify-content: center;
  width:100%;
  width:max-content;
  gap:5vw;
  transition:height 2s ease-in-out;
}
.menu-nav ul{
  display: flex;
  gap:2vw;
  justify-content: space-between;
}

.site-logo {
  width: 5vw;
  max-width: 60px; /* Keeps logo visible on small screens */
  height: auto;
  border-radius: 1vw;
  display: flex;
}

.dropdown-butt{
  display: none;
}
 

@media (max-width:800px){
    .dropdown-butt{
      display: block;
    }

    .nav-div{
      background-color:rgb(24, 34, 71);
    }

    .site-logo{
      display: none;
    }
    .main-nav-area{
      max-height:0;
      text-align: center;
      width:100%;
      overflow: hidden;
      opacity:0;
      transition:max-height 0.4s ease-in-out, opacity 0.3s ease;
      flex-direction: column;
      justify-content: center;
      gap:2vw;
    }

   
    .main-nav-open{
      max-height: min-content;
      opacity: 1;
    }

    .menu-nav ul{
      display: none;
      flex-direction: column;

    }
  

}


.contact-me {
  background-color:var(--primary-color);
  padding: var(--button-padding);
  border-radius: var(--button-radius);
}




/* ================== Sections ================== */
.cta-section {
  padding: var(--main-padding);
}
button{
  font-size:1rem;
}

.services {
  width: 100%;
  display:flex;
  gap:2vw;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;

}

.services h4{
  width:55%;
  font-size:clamp(1rem, 2vw, 2rem);
}


.services p{
  width:40%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem); /* responsive text */
  text-align: center;
  color:white;

}


.quote{
  background-color: var(--primary-color);
  padding: 0.5vw 1vw;
  font-size:1rem;
}



@media (max-width:700px){
  .services{
    flex-direction: column;
  }
  .services h4{
    width:100%;
    text-align: center;
  }
  .services p{
    width:100%;
    text-align: center;
  }
  .info{
    flex-direction: column-reverse;
  }

  .services-cards{
    flex-direction: column;
  }

}

/* ================== Typography ================== */ 

/* ================== Slider ================== */
.info{
  display: flex;
  padding:var(--main-padding);
  align-items: center;
  justify-content: space-between;
}

.info .statistics{
  flex: 2 1 90%;

}


#searchform div{
  display: flex;
  border:1px solid white;
  width: min-content;
  margin:0 auto;
}

#searchform input[type="text"]{
  color:black;
}

#searchform input[type="submit"]{
  padding:0.5vw 0.5vw;
}

.menu-icon{
  font-size:5vw;
  cursor: pointer;
}
.info ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
  justify-content: center;
}

.info ul li {
  border: 0.5px solid gray;
  flex: 1 1 auto;
  min-width: 120px;
  padding: 0.5vw;
  text-align: center;
}

#myChart{
  max-width:50vw;
  max-height:50vh;
  margin:0 auto;
}


.statistics{
  margin-top:2vh;
  text-align: center;
}



.services-cards{
  padding:var(--main-padding);
  display: flex;
  gap:2vw;
}

.services-cards div{
  border:1px solid gray;
  padding:0.5vw 1vw;
}


.products{
  padding: var(--main-padding);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width:700px){
  .products{
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }
}
article img{
  width:25%;
  border-radius: 1vw;
}


.info ul li{
  background-color: purple;
  border: none;
}

.services-cards div{
  background-color: purple;
  border: none;

}


.service-single{
  padding: var(--main-padding);
  background-color: white;
  text-align: center;
}


.service-single h1{
  color:black;
}

/* Black-and-White Contact Form Styles */
#bw-contact-form {
  border:1px solid gray;
  max-width: 500px;
  margin: 0 auto;
  background: #000;
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

#bw-contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#bw-contact-form input,
#bw-contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #000;
  color: #fff;
}

#bw-contact-form input:focus,
#bw-contact-form textarea:focus {
  outline: 2px solid #fff;
}

#bw-contact-form button {
  padding: 12px 25px;
  background: #fff;
  color: #000;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#bw-contact-form button:hover {
  background: #ccc;
}

.ds-service > *{
  margin-top:0.5vw;

}


.main-section-custom{
  display: flex;
  padding:var(--main-padding);
}


.main-section-custom main{
  width:70%;

}

.site-brand img{
  width:10vw;
  border-radius: 4vw;
  margin-top:2vw;
  margin-bottom:2vw;
}


.social-follow a{
  width:100%;
  display: flex;
  gap:1vw;
}

.search-container{
  padding: var(--main-padding);
}

.ds-btn{
  background-color: blue;
  padding:0.5vw 1vw;
}

table{
  margin:0 auto;
}

.service-single h1{
  font-size:1.8rem;
}

.service-content{
  margin-top:1.8rem;
}

.service-content *{
  margin-top:0.4vw;
}

.service-content p{
  margin-top:1vw;
}

.main-section-custom{
  width:max-content;
  margin:0 auto;
}

.my-custom-page{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap:2vw;
  box-sizing: border-box;
}
.featured-article h2{
  font-size:1.5rem;
}

@media (max-width:900px){
  
  .my-custom-page{
    grid-template-columns: 1fr;
    margin:0 auto;
  }
}

.my-custom-page .featured-article img{
  width:100%;
}

.contact-form{
  background-color: black;
  padding: var(--main-padding);
}
.main-section{
  background-color: #000;
}
/* Main Wrapper */
.main-about {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Author Section */
.main-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.main-author .img img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #fff;
}

.author-info h1 {
  font-size: 2rem;
  margin: 5px 0;
  color: #fff;
}

.author-info p {
  margin: 2px 0;
  color: #ccc;
}

/* Author Description */
.author-description {
  margin: 20px 0;
  font-size: 1rem;
  color: #ddd;
}

/* Skills Section */
.skills-section {
  margin: 20px 0;
}

.skills-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.skills-each ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.skills-each ul li {
  background-color: #111;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
}

/* Experience Section */
.experience-section {
  margin: 20px 0;
}

.title-for-experience {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.job-experience {
  background-color: #111;
  padding: 15px;
  margin: 10px 0;
  border-radius: 10px;
  text-align: left;
}

.job-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.job-date {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 5px;
}

.job-description {
  font-size: 0.95rem;
  color: #ddd;
}

/* Profile Links Section */
.profile-links-section {
  margin: 20px 0;
}

.profile-links-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.profile-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.profile-link:hover {
  background-color: #222;
}

.projects-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.projects-archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #111;
}

.projects-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem;
  color: #222;
}

.projects-pagination {
  margin-top: 3rem;
}

.no-projects {
  color: #555;
  padding: 2rem;
}
