* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pixelify Sans", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  min-height: auto;
  padding: 80px 16px;
}

/* Sidebar responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 120px;
  }

  body {
    margin-right: 120px !important;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  body {
    margin-right: 0 !important;
  }
}

@media (max-width: 600px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    padding: 6px;
    font-size: 14px;
  }
}

body {
    font-weight: 400;
    background-color: black;
    color: white;
    transition: margin-right 0.5s; /* Smooth transition for margin-right */
}

.heading {
    font-weight: 600;
    font-size: 34px;
}

.sidebar {
    background: rgb(44, 44, 44);
    width: 400px; /* Sidebar width when open */
    height: 100%;
    top: 20px;
    right: 0; /* Sidebar on the right */
    position: fixed;
    border-radius: 5%;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.5s, margin-right 0.5s;
    border-top: 4px solid green;
}

.user {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.user-img {
    width: 200px;
    border-radius: 50%;
    transition: 1s;
}



.loc-logo {
    width: 23px;
}

ul {
    list-style: none;
}

.loc {
    padding: 50px 50px;
    width: 100%;
}

.pro-logo {
    width: 50px;
    border-radius: 50%;
}

.contactProfiles {
    display: flex;
    width: 300px;
    justify-content: space-evenly;
    padding: 30px 0;
}

.sidebar.closed {
    width: 120px; /* Sidebar width when closed */
    transition: width 0.5s, margin-right 0.5s;
    border-radius: 20px;
}

.sidebar.closed .user-img {
    width: 100px;
    transition: 1s;
}

.sidebar.closed .user-details,
.sidebar.closed .loc,
.sidebar.closed .get-touch {
    display: none;
    transition: 1s;
}

.sidebar.closed .contactProfiles {
    flex-direction: column;
    align-items: center;
    padding: 30px;
    transition: 1s;
}

nav {
    display: flex;
    align-items: center;
    background-color: rgb(154, 154, 154);
    justify-content: space-evenly;
    position: fixed;
    top: 8vh;
    left: 50%;
    z-index: 1000;
    transform: translate(-50%);
    height: 35px;
    width: fit-content;
  padding: 0 10px;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    border: 3px solid rgb(58, 58, 58);
    width: auto;
    padding: 8px;
}

nav ul li a {
    text-decoration: none;
    color: rgb(58, 58, 58);
}

nav ul li a:hover,
nav ul li a.active {
    color: red;
}

section {
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    position: relative;
    border: 4px solid green;
}

#home {
    position: relative; 
}

header {
    position: absolute;
    top: 20px;
    left: 20px;
    text-align: left;
}

.leftSection {
    text-align: center; /* Center text inside the leftSection */
    font-size: 2.4rem;
}

.red {
    color: red;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: rgb(154, 154, 154);
    color: rgb(58, 58, 58);
    border: 5px solid rgb(58, 58, 58);
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
}

.btn:hover {
    color: red;
}

/* about section */

.about_sec {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.about_left {
    flex: 1;
    text-align: center;
}

.about_img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about_right {
    flex: 2;
    padding: 20px;
}

.about_right h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.about_right p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.highlight {
    color: #e63946;
    font-weight: bold;
}

.about-btn {
    background-color: #e63946;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.about-btn:hover {
    background-color: #d62828;
    color: black;
}

/* services section */

#services{
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
    align-items: center;
    justify-content: space-evenly;
}

.box{
    background-color: #f7f7f7;
    height: 500px;
    width: 100%;
  max-width: 300px;
  margin: auto;
    border-radius: 10px;
    position: relative;
}

.innerbox{
    background-color: black;
    height:290px;
    width: 290px;
    margin:5px;
    border-radius: 10px;
}

.innerbox h2{
    margin-left: 10px;
}

.box .innerbox span{
    display: block;
    margin-top: 20px;
}


.services-btns{
    display: flex;
}

.verticalbtn{
    background-color: #6b6b6b;
    width: 30px;
    height: 35px;
    margin-top: 40px;
    margin-left: 60px;
    border-radius: 5px 5px 0 0;
}

.horizontalbtn{
    background-color: #6b6b6b;
    height: 30px;
    width: 100px;
    border-radius: 5px;
    margin-left: 25px;
}

.verticalbtn1{
    background-color: #6b6b6b;
    width: 30px;
    height: 35px;
    margin-left: 60px;
    border-radius:  0 0 5px 5px;
}

.circle_hor_btn{
    width: 50px;
    height: 50px;
    background-color: red;
    border-radius: 50%;
}

.rightbtns{
    display: flex;
}

.circlebtn1{
    width: 40px;
    height: 40px;
    background-color: #6b6b6b;
    border-radius: 50%;
    margin-top: 95px;
    margin-left: 70px
}

.circlebtn{
    width: 40px;
    height: 40px;
    background-color: #6b6b6b;
    border-radius: 50%;
    margin-top: 55px;
}

/* projects section */

/* Ensure each slider image takes full width and is positioned correctly */
.slider {
    position: absolute;
    width: 100%; /* Ensure images take full width of their parent */
    height: auto;
    transition: transform 0.5s ease-in-out;
}



/* Ensure active slider image is visible */
.slider.active {
    opacity: 1; /* Make visible */
    transition: opacity 0.5s ease-in-out;
}

#projects{
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
    align-items: center;
    justify-content: space-evenly;
}

.p-innerbox{
    background-color: black;
    height:290px;
    width: 290px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-left: 5px;
    margin-top: 5px;
    border: 3px solid black;
}

.p-innerbox h2{
    margin-left: 10px;
}

.p-innerbox img{
    width: 100%;
    height: 100%;
    position: absolute;
    transition: 1s;
}

.services-btns {
    margin-top: 20px;
    display: flex;
}

/* .btn-left,
.btn-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
} */


.verticalbtn{
    background-color: #6b6b6b;
    width: 30px;
    height: 35px;
    margin-top: 40px;
    margin-left: 60px;
    border-radius: 5px 5px 0 0;
}

.verticalbtn1{
    background-color: #6b6b6b;
    width: 30px;
    height: 35px;
    margin-left: 60px;
    border-radius:  0 0 5px 5px;
}

.horbtn{
    display: flex;
}

.btn-left{
    background-color: #6b6b6b;
    height: 30px;
    width: 35px;
    border-radius: 5px;
    margin-left: 25px;
    border-radius: 5px 0 0 5px;
    border: none;
}

.midbtn{
    background-color: #6b6b6b;
    width: 30px;
    height: 30px;
    border: 1px solid #505050;
}

.btn-right{
    background-color: #6b6b6b;
    height: 30px;
    width: 35px;
    border-radius: 5px;
    border-radius: 0 5px 5px 0;
    border: none;
}

.box-links{
    background-color: black;
    padding: 8px;
  width: 100%;
  text-align: center;
    text-decoration: none;
    color: white;
    position: absolute;
    margin-top: 2px;
}

.box-links:hover{
    color: red;
}

/* Initial state: Text moves in from the right with opacity 0 */
.link-transition {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Final state: Text is fully visible and centered */
.link-visible {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}


/* Contact Section */
#contact {
    background-color: black; /* Background for the entire section */
    padding: 50px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure the section fits within the screen height */
    color: white;
}

.contact_container {
    max-width: 800px; /* Smaller width for the container */
    padding: 50px; /* Reduced padding */
    border-radius: 10px;
    background-color: #fff; /* White background for the contact box */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333;
    margin-top: 60px; /* Move it down to avoid navbar overlap */
    max-height: 80vh; /* Limit the container height to fit within the screen */
    overflow: auto; /* Prevent scrolling inside the container */
}

#contact h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

#contact p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.contact_info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.contact_item {
    text-align: center;
}

.contact_item img {
    width: 40px;
    margin-bottom: 10px;
}

.contact_item a {
    display: block;
    font-size: 18px;
    color: #e63946;
    text-decoration: none;
}

.contact_item a:hover {
    color: #d62828;
}

.contact_form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact_form input,
.contact_form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact_form button {
    background-color: #e63946;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact_form button:hover {
    background-color: #d62828;
}
@media (max-width: 768px) {
  .contact_container {
    padding: 20px;
    max-height: none;
  }

  .contact_info {
    flex-direction: column;
    gap: 20px;
  }
}
/* ---------------- MOBILE MENU BUTTON ---------------- */

.mobile-menu-btn {
  position: fixed;
  top: 15px;
  right: 15px;   /* ← moved to right */
  width: 44px;
  z-index: 2000;
  background: #9a9a9a;
  color: #3a3a3a;
  border: 3px solid #3a3a3a;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
  display: none;
}


/* MOBILE SIDEBAR MODE */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
nav {
    display: none;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    right: auto;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    border-radius: 0;
    transition: left 0.4s ease;
    z-index: 1500;
  }

  .sidebar.mobile-open {
    left: 0;
  }
}

/* ---------------- MOBILE VERTICAL MENU ---------------- */

.mobile-menu-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 3000;
  background: #9a9a9a;
  color: #3a3a3a;
  border: 3px solid #3a3a3a;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    top: 0;
    right: -100%;
    left: auto;
    height: 100%;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding-top: 60px;
    transition: right 0.4s ease;
    z-index: 2500;
  }

  .sidebar.mobile-open {
    right: 0;
  }

  /* Vertical redesign */
  .user {
    flex-direction: column;
    text-align: center;
  }

  .contactProfiles {
    flex-direction: column;
    gap: 20px;
  }

  .loc {
    padding: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about_sec {
    flex-direction: column;
    text-align: center;
  }

  .about_left {
    width: 100%;
    margin-bottom: 20px;
  }

  .about_img {
    width: 220px;
    height: 220px;
    object-fit: cover;      /* keeps image clean */
    border-radius: 10px;   /* square with soft edges */
  }

  .about_right {
    padding: 10px;
  }
}

.about_img {
  border: 3px solid #e63946;
}

@media (max-width: 768px) {

  #services {
    grid-template-columns: 1fr; /* one card per row */
  }

  .box {
    height: auto;              /* 🔥 allow height to grow */
    padding-bottom: 20px;
  }

  .innerbox {
    height: auto;              /* 🔥 allow typed text */
    width: 100%;
    min-height: 260px;
  }

  .innerbox span {
    font-size: 16px;
    line-height: 1.5;
    padding: 10px;
    display: block;
  }
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}
