 *{
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
}

:root {
  /* === Base Colors === */
  --color-bg-main: #0A0F29;        /* Deep Navy (Main background) */
  --color-bg-section: #1F1F1F;     /* Dark section or card bg */
  --color-bg-light: #F5F5F5;       /* Light gray for contrast sections */

  /* === Text Colors === */
  --color-text-main: #FFFFFF;      /* White text */
  --color-text-muted: #C0C0C0;     /* Secondary/placeholder text */
  --color-text-dark: #1F1F1F;      /* Text on light backgrounds */

  /* === Primary Accent === */
  --color-primary: #007BFF;        /* Electric Blue (buttons, highlights) */
  --color-primary-hover: #339CFF;  /* Lighter blue on hover */

  /* === Secondary Accent === */
  --color-accent: #00FFAA;         /* Neon green for hover/pop */
  --color-link: #00C6FF;           /* Sky Blue for links */
  --color-link-hover: #00FFAA;     /* Hover effect on links */

  /* === Border and Shadow === */
  --color-border: #2E2E2E;
  --color-shadow: rgba(0, 255, 170, 0.1);
}


html{
    scroll-behavior: smooth;
    user-select: none;
}
body{
    min-height: 100vh;
    background-color: black;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header{
    font-weight: bold;
    height: 70px;
    align-items: center;
    position: fixed;
    width: 100%;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    padding: 1.5rem;
}
ul, li a{
    display: flex;
    gap: 20px;
    text-decoration: none;
    list-style: none;
    color: var(--color-text-main);
}

ul li a:hover{
    border: 1px solid white;
    padding: 6px;
    width: 80px;
    border-radius: 4px;
    justify-items: center;
    text-align: center;
    border-radius: 2px;
    text-decoration-line: none;
    border-style: hidden;
    display: inline;
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
    transition: 1s ease all;
}
ul li a:focus{
    color: var(--text-color);
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}
ul li a:active{
    color: var(--text-color);
    text-underline-offset: 5px;
    text-decoration-color: var(--text-color);
    text-decoration-thickness: 6px;
    text-decoration: underline;
}
/* Hamburger icon hidden by default */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px){
  header{
    position: fixed;
    height: 50px;
    align-items: center;
    padding-top: 0;
  }
  nav {
    /* flex-direction: row-reverse; */
    color: var(--text-color);
    font-size: small;
  }

  .hamburger {
    display: block;
    color: var(--text-color);
    font-size: large;
    z-index: 2000;
  }

  .links {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 1rem;
  }

  .links.active {
    display: flex;
  }

  .links a {
    color: var(--color-primary);
    font-size: 1.2rem;
    background-color: none;
    
  }
  .links {
  position: fixed;
  top: 50px;
  left: -100%;
  height: 100%;
  width: 40%;
  max-width: 300px;
  font-size: small;
  background: var(--color-bg-main);
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 1rem;
  transition: left 1s ease-in-out;
  z-index: 1000;
}
.links.active {
  left: 0;
  top: 3rem;
}
ul li a:hover{
  color: var(--color-text-main);
  text-decoration-color: var(--color-text-main);
}
}
/* the mobile styles query ends here for the hamburger  menu */

/* this  section is for the home page of my portfolio */
section{
  padding: 20px;
  color: var(--text-color);
}
.home_page{
    display: flex;
    justify-content: space-between;
    height: 100vh;
    text-align: left;
    color: var(--text-color);
    justify-content: center;
    align-items: center;
    gap: 13%;
    color: white;
    padding: 20px;
}
.home_text h2{
  font-size: 70px;
  margin-bottom: 10px;
  padding: 15px;
}
.home_page p{
  padding: 10px;
  font-size: x-large;
  text-align: left;
}
.home_page a{
  text-decoration: none;
  color: white;
}
span{
  color: var(--primary-color);
}
/* the button below the text in homepage owns this style */
.btn{
  padding: 15px;
  background-color: rgb(65, 57, 57);
  border-radius: 5px;
  width: 120px;
  font-weight: bold;
  /* border: 1px solid black; */
  text-transform: capitalize;
  margin-top: 10px;
}
.btn:hover{
  background-color: var(--color-primary-hover);
  color: #000;
  box-shadow: 1px 1px 6px  6px var(--primary-color);
  cursor: pointer;
}
.btn:active{
  border: 1px solid white;
}
#images{
  height: 300px;
  width: 300px;
  border-radius: 50%;
  box-shadow: var(--color-shadow);
  justify-content: center;
  display: inline-block;
}

/* ===simple animation for the image === */

#images img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 1px 1px 6px  6px var(--color-shadow);
}
  .ball {
  animation: bounce 2s infinite;
  display: inline-block;
}
@keyframes bounce {
    0%{
    transform: translateY(0);
    box-shadow: 2px 1px 2px 2px var(--color-text-main);
  }
  50% {
    transform: translateY(-40px);
    box-shadow: 2px 2px 2px 2px var(--color-text-main);
  }
  100%{
    transform: translateY(0);
    box-shadow: -3px 0px 0px 3px var(--color-text-main);
  }
}

/* home page of my portfolio queries begins here */
@media (max-width: 768px){
  section{
    flex-direction: column;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
  .home_page{
    flex-direction: column-reverse;
    gap: 0px;
    padding-top: 80px;
    height: 100%;
    text-align: center;
    justify-items: center;
  }
  .home_page h2{
    font-size: 1.2rem;
  }
  .home_page p{
    font-size: small;
    text-align: center;
  }
  .home_text{
    font-size: 16px;
    text-align: center;
  }
  .btn{
    margin-top: 10px;
    width: 120px;
    padding: 8px;
    color: black;
  }
  #images{
    height: 150px;
    width: 150px;
    box-shadow: 1px 1px 10px  8px var(--primary-color);
  }
  @media (max-width: 768px) {
  #images img {
    animation: bounce 1.5s infinite;
  }
}
}
/* === query animation begins here ===*/
#images img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 1px 1px 6px  6px var(--color-shadow);
}
  .ball {
  animation: bounce 2s infinite;
  display: inline-block;
  z-index: 500;

}
@keyframes bounce {
  0%{
    transform: translateY(0);
    box-shadow: -3px 0px -1px 1px var(--color-text-main);
  }
  50% {
    transform: translateY(-15px);
    box-shadow: 1px 0px 0px 1px var(--color-text-main);
  }
  100%{
    transform: translateY(0);
    box-shadow: -3px 0px 0px 1px var(--color-text-main);
  }
}
/* the homepage queries nds where the about section query begins */
/* the about section */ 

#about{
  height: fit-content;
}
.container {
  /* height: 100%; */
  width: 90%;
  margin: auto;
} 

.container h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
} 

h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}
p{
  padding: 0px;
  text-align: center;
  color: white;
}

/* the about section ends here */
/* the services  secctions starts here */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  /* background-color: whitesmoke; */
  background-color: var(--color-bg-light);
  padding: 30px;
  align-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-item p {
  color: #666;
}
/* services section ends here */
/* the services section queries begins here */
@media (max-width: 678px) {
  .container{
    text-align: center;
    width: fit-content;
  }
  #service{
    flex-direction: column;
    /* height: 100%; */
  }
  .service-item{
    padding: 15px ;
    width: fit-content;
    display: flex;
    flex-direction: column;
  }
}

/* the portfolio styles begins here */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-item {
  background-color: whitesmoke;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.portfolio-item h3 {
  margin-top: 15px;
}

.portfolio-item p {
  color: #666;
}
/* portfolio styles ends here */
/* the portfolio section queries begins here */
@media (max-width: 768px) {
  section{
    display: block;
  }
  .container h2{
    font-size: x-large;
    /* grid-template-columns: repeat(150px, 1fr); */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    display:  flex;
    flex-direction: column;
  }
  #portfolio{
    flex-direction: column;
    height: 100%;
    width: 100%;
  }
  .portfolio-grid{
    display: flex;
    flex-direction: column;
  }
}
/* where the contact section begins  */
#contact form {
  height: fit-content;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--color-shadow);
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
}

#contact textarea {
  resize: vertical;
  min-height: 150px;
}

#contact button {
  padding: 15px;
  font-size: 1rem;
  background-color: var(--color-primary);
  color: var(--default-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: #999 0.3s ease;
}

#contact button:hover {
  background-color: var(--color-primary-hover);
  color: white;
}
/* the contact section queries begins here */
@media (max-width: 768px) {
  #contact form{
    gap: 10px;
  }
  #contact input, #contact textarea{
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
 #contact button{
  padding: 5px;
 }
}
/* this is the code thatv removes the text  decoration from the submit button*/
.submit-btn a{
  text-decoration: none;
  color: #fdf8f8;
}
.submit-btn{
  background-color: var(--color-bg-main);
}
.submit-btn:hover{
  background-color: #000;
  color: #fff;
}
.submit-btn a:hover{
  color: #fff;
  background-color: var(--color-primary);
}

/* home page of my portfolio queries ends here  */
footer{
  text-align: center;
  color: #fff;
  padding: 20px;
} 
footer p a{
  color: white;
}
footer p a:hover{
  color: var(--color-primary-hover);
}