/* ========== FONT IMPORT ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
/* ========== CSS VARIABLES ========== */
:root {
  --font-body: 'Poppins', sans-serif;
  --font-headings: 'Orbitron', sans-serif;
  --font-decorative: 'Allura', cursive;

  --color-accent: cadetblue;
  --color-bg: #0d2024;
  --color-dark: #000000;
  --color-light: whitesmoke;
  --color-overlay: rgba(0, 0, 0, 0.6);
}


/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

html, body {
  scroll-behavior: smooth;
  min-height: 100vh; 
  background-color: black;
  color: #fff;
  overflow-y: auto;
  height: auto;
}

button,
input[type="button"],
input[type="submit"],
a {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

body {
  overflow-x: hidden;
}
/* ========== CURSOR RING ========== */
#cursor-ring {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.05s ease-out, border-color 0.2s ease;
  backdrop-filter: blur(2px);
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #111;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.spin-logo {
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== NAVIGATION ========== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 4rem;
  background-color: var(--color-overlay);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 5%;
  z-index: 9999;
}

/* Logo */
.logo img {
  width: 2.5rem;
  height: auto;
  display: block;
}

/* Navigation Links */
nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 5.25rem; 
}

nav ul li a {
  text-decoration: none;
  font-size: 1.125rem; 
  font-family: var(--font-headings);
  color: #fff;
  transition: filter 0.3s ease;
}

nav ul li a:hover {
  filter: brightness(65%);
}

/* Contact Button */
.contactadjust {
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  border: 1px solid #fff;
  transition: 0.3s ease;
  font-weight: 500;
}


/* ========== HEADER TEXT ========== */
.header-text {
  margin-top: 20%;
  font-size: 1.5625rem;
}

.header-text h1 {
  font-size: 3.75rem;
  margin-top: 1.25rem;
}

.header-text h1 span {
  color: var(--color-accent);
}

/* ========== HOME ========== */
#particles-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  display: none; 
}

.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  background-size: cover;
  background-attachment: fixed;
}


.video-background {
  position: absolute;
  top: 4.125rem; 
  left: 0;
  width: 100%;
  height: calc(100% - 4.125rem); 
  z-index: -1;
  overflow: hidden;
}


.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
  display: block;
}


.video-background.fallback {
  background: url('images/website.jpg') center top no-repeat;
  background-size: cover;
  transition: background 0.5s ease-in-out;
}



.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: -1;
}

.max-width {
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

/* ========== HOME CONTENT ========== */

.video-fallback-message{
 display: none;
}

/* ---------------- About Section ---------------- */
#about {
  padding: 6.25rem 5% 9.375rem; 
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#particles-about {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.about-container {
  position: relative;
  z-index: 1;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem; 
}

.about-col-2 {
  flex: 1 1 35%;
}

.about-col-2 img {
  width: 100%;
  border-radius: 0.9375rem;
}

.about-col-1 {
  flex: 1 1 60%;
  font-family: 'Poppins', sans-serif;
}

.about-col-1 h1.sub-title {
  font-family: monospace;
  font-size: 4.75rem;
  font-weight: 600;
  color: #64ffda;
  margin-bottom: 1.25rem; 
}

.about-col-1 p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: whitesmoke;
}
.readme-quote {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-style: italic;
  color: #aaa;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}
.readmore-toggle{
  display: none;
}

#experience{
margin-left: 4rem;
}
#education{
margin-left: 10rem;
}

/* Tabs */
.tab-titles {
  display: flex;
  gap: 1.875rem; 
  margin: 1.875rem 0;
}

.tab-links {
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  color: #fff;
}

.tab-links::after {
  content: '';
  width: 0;
  height: 0.1875rem; 
  background: #2f7f78;
  position: absolute;
  left: 0;
  bottom: -0.5rem; 
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

.tab-contents ul li {
  list-style: none;
  margin: 0.625rem 0; 
}

.tab-contents ul li span {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2f7f78;
}

.cv-highlight {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2f7f78 !important;
}
/* Download Button */
.btn {
  display: inline-block;
  margin-top: -1rem;
  padding: 0.875rem 1.5625rem; 
  border: 0.125rem solid #585757; 
  border-radius: 0.375rem;
  text-decoration: none;
  color: #fff;
  background: black;
  transition: background 0.4s;
  margin-left: -0.3rem;
}

.btn.btn1:hover {
  background: #2f7f78;
}
.resume-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem; 
}

.btn.btn2 {
  border: 2px solid #555757;
  background: transparent;
  color: #fff;
}

.btn.btn2:hover {
  background: #2f7f78;
  color: white;
}



/* ---------------- Services Section ---------------- */
#services {
  padding: 12.5rem 0; 
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

#services h1 {
  margin-top: -9.375rem; 
  font-family: 'Orbitron', sans-serif;
  font-size: 3.6rem;
}

#particles-services {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.services-container {
  position: relative;
  z-index: 1;
  padding: 0 1.3rem;
  max-width: 100%; 
  margin: 0 auto; 
}

.services.sub-title {
  font-family: 'Poppins', sans-serif;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); /* 250px */
  gap: 2.5rem; 

}
.services-icon {
   color: #64ffda;
}

.services-list div {
  padding: 2.5rem; 
  font-size: 0.8125rem; 
  font-weight: 300;
  border-radius: 0.625rem;
  transition: background 0.5s, transform 0.5s;
  border: 1px solid #64ffda;

}

.services-list div i {
  font-size: 3.125rem;
  margin-bottom: 1.875rem; 
}

.services-list div h2 {
  font-size: 1.875rem; 
  font-weight: 500;
  margin-bottom: 0.9375rem; 
}

.services-list div a {
  display: inline-block;
  margin-top: 1.25rem; 
  font-size: 0.75rem; 
  text-decoration: none;
  color: #fff;
}

.services-list div:hover {
  background: transparent;
}

.title {
  text-align: center;
  font-size: 2.375rem;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: -3.75rem 0 1.25rem;
  font-family: 'Orbitron', sans-serif;
}

.tech-stack {
  padding: 2.5rem;
  margin: 6rem auto 0;
  gap: 1.25rem;
  justify-items: center;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 3.15rem;
  max-width: 56.25rem;
  margin: 0 auto;
  justify-items: center;
}

.icon-box {
  width: 7.5rem;
  height: 7.5rem;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  animation: fadeLoop 6s ease-in-out infinite;
}

.icon-box:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.icon-box .tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
.tooltip {
  position: absolute;
  bottom: 100%;             
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.3rem;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.icon-box:hover .tooltip {
  opacity: 1;
}

.icon-box:hover .tooltip {
  opacity: 1;
}

.icon {
  width: 2.5rem;
  height: auto;
}

.label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #eee;
  text-align: center;
}


  @keyframes fadeLoop {
  0% { opacity: 0; transform: scale(1); }
  25% { opacity: 1; transform: scale(1.05); }
  50% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0; } 
}
.icon-box {
  animation: fadeLoop 6s ease-in-out infinite; 
}

.icon-box:nth-child(1)  { animation-delay: 1.5s; }
.icon-box:nth-child(2)  { animation-delay: 1.8s; }
.icon-box:nth-child(3)  { animation-delay: 2.1s; }
.icon-box:nth-child(4)  { animation-delay: 2.4s; }
.icon-box:nth-child(5)  { animation-delay: 2.7s; }
.icon-box:nth-child(6)  { animation-delay: 3.0s; }
.icon-box:nth-child(7)  { animation-delay: 3.3s; }
.icon-box:nth-child(8)  { animation-delay: 3.6s; }
.icon-box:nth-child(9)  { animation-delay: 3.9s; }
.icon-box:nth-child(10) { animation-delay: 4.2s; }
.icon-box:nth-child(11) { animation-delay: 4.5s; }
.icon-box:nth-child(12) { animation-delay: 4.8s; }
.icon-box:nth-child(13) { animation-delay: 5.1s; }
.icon-box:nth-child(14) { animation-delay: 5.4s; }
.icon-box:nth-child(15) { animation-delay: 5.7s; }
.icon-box:nth-child(16) { animation-delay: 6.0s; }
.icon-box:nth-child(17) { animation-delay: 6.3s; }



.bg-wrapper {
  background-image: url(images/website3.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  width: 100%;
  overflow: hidden;
}

.bg-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); 
  z-index: 0;
}
/* -----Skills----*/

#particles-skills {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#Skills .container {
  position: relative;
  z-index: 1;
}

#Skills {
  padding: 12.5rem 0;
  position: relative;

}

#Skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

#Skills h1 {
  font-size: 4rem;
  font-family: 'Orbitron', sans-serif;
  margin-top: -5rem;
  margin-left: -2.5rem;
}

.skills-grid {
  margin-top: 2.5rem;
  margin-left: 10rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.skill-category,
.skill-categorytwo,
.skill-categorythree,
.skill-categoryfour {
  background-color: rgba(0, 0, 0, 0.12);
  padding: 1.25rem;
  border-radius: 0.625rem;
  border: 1px solid #fff;
  max-width: 21.25rem;
  width: 100%;
  margin-bottom: 1.25rem;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  height: 20rem; 
  flex-direction: column;
  justify-content: space-between;
 
}
.skill-category{
    margin-left: 15rem;
}
.skill-categorythree{
    margin-left: 15rem ;
}
.skill-category ul,
.skill-categorytwo ul,
.skill-categorythree ul ,
.skill-categoryfour ul {
margin-top: 0.6rem;
}
.skill-category ul li,
.skill-categorytwo ul li,
.skill-categorythree ul li,
.skill-categoryfour ul li {
  list-style: none;
  margin-bottom: 0.5rem;
}

.skill-category i,
.skill-categorytwo i,
.skill-categorythree i,
.skill-categoryfour i {
  margin-right: 0.5rem;
  color: white;
}

.skills {
  max-width: 62.5rem;
  margin: 13.625rem auto 0;
  background: black;
  padding: 2rem;
  border-radius: 0.625rem;
  border: 3px solid white;
  box-shadow: 0 0 1.25rem rgba(8, 154, 118, 0.1);
  color: white;
  
}

.skills h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: white;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab.active {
  border-color: cadetblue;
  color: cadetblue;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.bar {
  margin-bottom: 1rem;
}

.bar span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.progress {
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
  height: 0.625rem;
}

.progress div {
  background: linear-gradient(90deg, #93a0ae, #154758);
  height: 100%;
  width: 0;
  transition: width 1s ease;
}

/*-----project----*/

 #particles-project{
  display: none;
 }


.Project, .container {
  position: relative;
  z-index: 1;
}

#project {
  position: relative;
  padding: 200px 0;
  
}

#project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); 
  z-index: 0;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 4rem;
  font-family: 'Orbitron', sans-serif;
}
.project-card h3{
 margin-top:2.4rem;
}
.project-subtitle.project-card {
  border: none;
  padding: 0;
  box-shadow: none;
  margin: 30px 0 15px;
  background: transparent;
  text-align: center;
  font-size: 2.6rem;
  font-weight: 300;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  pointer-events: none; 
  margin-top: 20px;
  margin-bottom: -206px;
  margin-left:2rem;
  

}

.category-box {
  background: linear-gradient(90deg, #3c7a0600, #000000);
  border: 2px solid #f7fffd;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.category-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.category-buttons button {
  padding: 10px 20px;
  border: none;
  background-color: #000000;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.category-buttons button.active,
.category-buttons button:hover {
  background: rgb(36, 37, 38);
  color: white;
  border: 2px solid #ffffff;
}

.subcategory-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 20px;
  flex-wrap: wrap;
}

.subcategory-buttons button {
  background-color: #080808;
  color: white;
  border: 2px solid #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.subcategory-buttons button:hover {
  background-color: #2f7f78;
  color: #fff;
  transform: scale(1.05);
}

.subcategory-buttons button.active {
  background-color: #2f7f78;
  color: white;
  box-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}
.projects h3{
  color: white;
}

/* Enterbox-style project cards */
.enterbox-style {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  background: #121212;
  color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(27, 23, 23, 0.4);
  min-height: 100%; /* ensure equal height */
}

.enterbox-style .project-image {
  height: 290px; 
  overflow: hidden;
  position: relative;

}

.click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.5); /* dark overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}



.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card.active .project-image img {
  transform: scale(1.08);
  transition: transform 0.5s ease;
}

.project-card.active .overlay-icon {
  opacity: 1;
  pointer-events: auto;
}

.project-card.active .overlay-icon1 {
  opacity: 1;
  pointer-events: auto;
}

.enterbox-style .overlay-icon {
  animation: floatPulse 2s ease-in-out infinite;
}

.enterbox-style .overlay-icon1 {
  animation: floatPulse 2s ease-in-out infinite;
}


.overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  right: 4rem;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  font-size: 20px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
  width: 40px;        
  height: 40px;
  margin-left: 4rem;
  display: flex;   
}

.overlay-icon1 {
  position: absolute;
  top: 50%;
  left: 40%;
  right: -2rem;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  font-size: 20px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
  width: 40px;        
  height: 40px;
  margin-left: 1rem;
  display: flex;   
}


.globe-icon {
  color: rgb(24, 174, 154);
  font-size: 20px;
  margin-left:-0.1rem; 
 
}
.globe-icon1{
  font-size: 20px;
  color: purple;
  margin-left:-0.1rem; 
}



.project-image.clicked .overlay-icon {
  opacity: 1;
  pointer-events: auto;
}

.project-image.clicked .overlay-icon1 {
  opacity: 1;
  pointer-events: auto;
}
.project-image.clicked img {
  transform: scale(1.1);
}


.enterbox-style .overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  padding: 10px 12px;
  font-size: 20px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.enterbox-style .overlay-icon1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  padding: 10px 12px;
  font-size: 20px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.project-image.clicked .overlay-icon1{
  opacity: 1;
  pointer-events: auto;
}

.enterbox-style .overlay-icon1:hover{
  background: rgba(255,255,255,0.2);
}


.enterbox-style .overlay-icon:hover {
  background: rgba(255,255,255,0.2);
}
.enterbox-style .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

@keyframes floatPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -52%) scale(1.1);
  }
}



.project-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
  background: #121212;
}



.enterbox-style .project-title {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.enterbox-style .project-description {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.enterbox-style .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.enterbox-style .tech-tags span {
  background: #1e1e1e;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 10px;
}

.enterbox-style .view-project {
  margin-top: auto; /* this pushes it to the bottom */
  text-decoration: none;
    color: rgb(24, 174, 154);
  font-weight: bold;
  font-size: 0.95rem;
}
.enterbox-style .view-project1{
  color: rgb(119, 31, 119);
   font-weight: bold;
  font-size: 0.95rem;
  margin-top: auto; /* this pushes it to the bottom */
  text-decoration: none;
}

.viewsite {
  margin-top: auto; /* this now works properly */
}





.project-card {
  flex: 0 1 calc(50% - 20px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(90deg, #3c7a0600, #000000);
  border: 2px solid rgb(222, 222, 225);
  border-radius: 10px;
  text-align: center;

}


.project-card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin-top: -1rem;
  margin-left: 1rem;
}
.projectlogo{
  width: 300px;
  height: 100px;
  margin-left: 120px;
  margin-top: 10px;
}
.logodesign{
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
}
.logodesign img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.logodesign2 img{
  margin-left: -1rem !important;
  margin-top: 62px;
}

.logodesign3{
  margin-top: 30px;
  margin-bottom: 30px;
}

.project-card button {
  display: inline-block;
  margin-top: -40px;
  margin-bottom: -30px;
  padding: 6px 12px;
  background: rgb(0, 0, 0);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid #f7fffd;
  margin-left: 10px;
  
}
.design-btn {
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.design-btn:hover {
   background: linear-gradient(90deg, #000000, #0a4f48);
  filter: brightness(35%);
}

.viewsite a {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: black;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #f7fffd;
}

.viewsite a:hover {
  background: linear-gradient(90deg, #000000, #41375f);
  filter: brightness(35%);
  
}



.project-card img{
 width: 120px;
 height: 100px;
 margin-top: 10px;
}

/*modal*/
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
   overflow-y: auto;
   align-items: flex-start;
}


.modal.open {
  display: flex;
}

.modal-content {
  background: linear-gradient(170deg, #000, #000);
  /* border: 0.1rem solid white; */
  border-radius: 10px;
  padding: 20px;
  overflow-y: auto;
  max-width: 1200px;
  width: 90%;
  max-height: 100vh; /* Keep it within the viewport */
  position: relative;
  margin: 20px auto;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.modal::-webkit-scrollbar {
  width: 8px;
}
.modal::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
} 
.modal::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.close {
  position: fixed;
  right: 20px;
  top: 10px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  z-index: 100;
}

.gallery-grid {
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 15px; /* space between images */
  margin-top: 20px;
  justify-content: center;
  align-items: center;
}

.gallery-grid img {
  width: 60%; /* full width inside modal */
  max-width: 800px; /* optional limit for balance */
  border-radius: 8px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02); /* small zoom on hover */
}


.modal-content h2 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.5rem;
  position: fixed;
}

#uiuxModal{
  display: none;           /* hidden by default */
  position: fixed;
  inset: 0;                /* top:0; right:0; bottom:0; left:0 */
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  overflow-y: auto;  
}

#uiuxModal .modal-content{
   background: linear-gradient(170deg, #000, #000);
  /* border: 0.1rem solid white; */
  border-radius: 10px;
  padding: 20px;
  overflow-y: auto;
  max-width: 1200px;
  width: 90%;
  max-height: 100vh; /* Keep it within the viewport */
  position: relative;
  margin: 20px auto;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}




/*----contact----*/
#contact {
  min-height: 100vh;
  padding: 5rem 0;
  position: relative;
  margin-bottom: -15rem;
}

#particles-contact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* keeps it behind content */
}

.contact-wrapper {
  /* background: linear-gradient(135deg, #1a1a4036, #0ca39e2e, #19222230); */
  border-radius: 1.25rem;
  border: 0.1rem solid #fff;
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  margin: 4rem auto 0;
  max-width: 87.5rem;
  padding: 2.5rem 1.25rem;
}

#contact .container {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

#contact::after {
  content: '';
  display: block;
  height: 6.25rem;
}

.contact-left {
  flex: 1 1 35%;
  margin-top: 3.75rem;
  margin-right: 34.375rem;
}

.contact-left h1 {
  margin-top: -1.875rem;
}

.contact-left p {
  margin-top: -1.25rem;
  font-size: 1.25rem;
}

.contact-left p i {
  color: cadetblue;
  margin-right: 0.9375rem;
  font-size: 1.5625rem;
}

.social-icons {
  margin-top: 0.625rem;
}

.social-icons a {
  text-decoration: none;
  font-size: 1.875rem;
  margin-right: 0.9375rem;
  color: silver;
  display: inline-block;
  transition: transform 0.5s;
}

.social-icons a:hover {
  color: cadetblue;
  transform: translateY(-0.3125rem);
}

.contact-box {
  background-color: #000;
  border-radius: 0.625rem;
  padding: 1.25rem;
  width: 100%;
  max-width: 24rem;
  margin: -25rem auto 0;
  box-shadow: 0 0 0.9375rem rgba(255, 255, 255, 0.05);
  transform: translateX(18rem); 

}

.contact-box h3 {
  margin-bottom: 1.5625rem;
  font-size: 1.5rem;
  color: #fff;
}

.contact-box form {
  display: flex;
  flex-direction: column;
}


.contact-box input,
.contact-box textarea {
  background: #2a2a2a;
  border: none;
  border-radius: 0.5rem;
  padding: 0.9375rem;
  margin: 0.625rem 0;
  color: #fff;
  font-size: 1rem;
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: #999;
}

.contact-box button {
  background-color: #f0f0f0;
  color: #000;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.625rem;
  transition: 0.3s;
}

.contact-box button:hover {
  background-color: #ddd;
  filter: brightness(75%);
}

.contact-box select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #444;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: #2a2a2a;
  color: #fff;
  outline: none;
  margin: 1rem 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23aaa' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem;
  transition: border-color 0.3s ease;
}

.contact-box select:focus {
  border-color: #888;
}

.contact-box option {
  background-color: #1a1a1a;
  color: #fff;
}


textarea[name="message"] {
  margin-top: 1rem;
}




.email-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(198, 202, 202, 0.275);
  color: #fff;
  border-radius: 1.875rem;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  margin-left: -0.9375rem;
}

.email-btn i {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.email-btn:hover {
  background: #2f7f78;
  color: #fff;
  transform: translateY(-0.125rem);
}

.email-btn:hover i {
  transform: scale(1.2);
}
.submit-btn .submit-icon {
  color: white !important;
}
.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 0;
  position: relative;
  z-index: 10;
  margin: -70px 0 100px -80px;
}

.quick-links ul {
  display: flex;
  position: absolute;
  margin-top: -10px;
  margin-left: 90px;
}

.quick-links ul li {
  list-style: none;
}

.quick-links ul li a {
  display: block;
  padding: 8px 16px;
  margin: 8px;
  border: 1px solid #0c8f79;
  border-radius: 6px;
  color: #eee;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.quick-links ul li a:hover {
  background-color: #2f7f78;
  color: #fff;
}

.titl h1 {
  text-align: center;
  color: #fff;
  font-size: 1.8rem;
  border-radius: 10px;
  padding: 1px 8px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid white;
  margin: -60px 0 10px 20px;
}


/*---copyright---*/
.copyright {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  height: 3.125rem;
  border-top: 0.0625rem solid #3d3838;
  color: #fff;
  text-align: center;
  padding: 0.625rem 0;
  font-size: 0.885rem;
  z-index: 1000;
}

.ticker-text {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
}

.back-to-top {
  position: fixed;
  bottom: 3.75rem;
  right: 1.875rem;
  font-size: 1.25rem;
  color: #fff;
  width: 55px;
  background-color: transparent;
  border: 0.125rem solid #fff;
  padding: 0.75rem 0.875rem;
  border-radius: 50%;
  text-align: center;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background-color: cadetblue;
  cursor: pointer;
}


.logo img{
  width: 40px !important;
  height: auto !important;
 }

    
    

.logodesign img {
  width: 220px !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  margin: 20px auto;
  margin-top: 30px;
  margin-left: 165px;
}
input,
textarea {
  scroll-margin-bottom: 8rem;
}

















/*----------css for small screen responsiveness---------*/
@media (max-width: 2900px) {
  
  .skills-grid {
    margin-left:-36rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    justify-items: center;
   
  }

  .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    margin: 1rem !important;
    width: 100%;
    max-width: 22rem;
    height: auto !important;
  }
  .skill-category{
    margin-left: 44rem !important;
  }
  .skill-categorythree{
    margin-left: 44rem !important;
  }

  .quick-links{
    margin-top: 17rem !important
  }

  
}

@media (min-width: 1441px) and (max-width: 1920px) and (min-height: 1001px) and (max-height: 1440px) {
  .home {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    padding: 0;
  }

  .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    overflow: hidden;
  }


  .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:20% center;
    display: block;
  }



  #particles-mobile {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
  }


}


@media (max-width: 1600px) {
  
  .quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
    padding: 20px;
    margin: 40px auto 80px;
    max-width: 120%;
    box-sizing: border-box;
    margin-top: 20px;
    
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    justify-items: center;
  }

  .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    margin: 1rem !important;
    width: 100%;
    max-width: 22rem;
    height: auto !important;
  }
  .skill-category{
    margin-left: 44rem !important;
  }
  .skill-categorythree{
    margin-left: 44rem !important;
  }
  .quick-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    margin-top: -1.9rem;
  }
    .titl h1 {
    font-size: 1.5rem;
    margin: 10px 0 20px 0;
    padding: 8px 16px;
    text-align: center;
    margin-top: -160px;
  }

  .quick-links ul li {
    flex: 1 1 auto;
    text-align: center;
  }

 .quick-links ul li a {
  display: inline-block;
  white-space: nowrap;    
  overflow: hidden;             
  text-overflow: ellipsis;      
  max-width: 170px;             
  padding: 10px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
  color: #eee;
  text-decoration: none;
  text-transform: capitalize;
 }

}

@media (max-width: 1366px) {
  .bg-wrapper {
    background-image: none !important;
    position: relative;
  }
     #particles-skills {
    display: block;
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
    .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
     border: 1px solid  #64ffda; 
  }
 
   .skill-category ul,
  .skill-categorytwo ul,
  .skill-categorythree ul,
  .skill-categoryfour ul {
    margin-top: 0.7rem;
  }

  .progress div {
  background: linear-gradient(90deg, #64ffda, #154758);
  }
  .skills{
     border-left:none ;
    border-right: none;
    border-top: none;
    border-bottom: none;
  }
  .fab {
    color:  #64ffda !important;
  }
  #skills .fas {
  color: #64ffda; 
  }
  .category-box {
   width: 108%; 
   border-bottom: none;
   border-top: none;
   border-left:none;
   border-right: none;  
  
  }
   .category-buttons button {
   border-radius: 10px;
   font-size: 0.8rem;
   background-color: none;
   border: 1px solid  #64ffda;
  }
  .category-buttons button.active,
  .category-buttons button:hover {
  background: rgb(36, 37, 38);
  color: white;
  border: 2px solid #64ffda; 
  }
  .project-card.enterbox-style{
    border:none !important;
  }
  .project-card{
    border:1px solid#64ffda !important;
     border: none;

  }
   .view-project{
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 10px !important;
  }
  .view-project1{
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 10px !important;
  }
    .subcategory-buttons button:hover {
    background-color: #2f7f78;
    color: #fff;
    transform: scale(1.05);
  }

  .subcategory-buttons button.active {
    background-color: hsl(160, 3%, 43%);
    color: white;
    box-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
  }
  .project-card h3{
    margin-top: 1.8rem;
  }
   .enterbox-style .project-image {
    height: 295px !important; 
    width: 100%;
  }
  .modal-content{
   border: 1px solid #64ffda;
  }
  .project-image img {
    width: 100% !important;
    height: 90% !important;
    object-fit: cover !important;
  }
  .overlay-icon{
    margin-left: 2rem;
  }
  .project-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .viewsite {
  margin-top: auto !important;
  }
  .design-btn{
    border-radius: 10px !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  .contact-wrapper {
    padding: 1.5rem 1rem;
    border: 1px solid #2f7564;
   
  }
  .email-btn{
    margin-left: -1.3rem !important;
  }
  .ticker-text{
    font-size: 0.7rem;
  }
}


@media (max-width: 1330px){
   .skills-grid {
    margin-left:-30rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    justify-items: center;
    
  }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  /* ----- NAVIGATION ----- */
     nav {
    padding: 0 20px;
    height: auto;
    flex-wrap: wrap;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 6px 10px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }

  .nav-container .logo img {
    width: 50px !important;
    margin-left: 0;
    margin-top: 0;
  }

  #sidemenu {
    margin-left: 0;
    margin-top: 0;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contactadjust {
    margin-left: 0;
    padding: 5px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .header-text {
    margin-top: 25%;
    font-size: 1.4rem;
    margin-left: 0;
    text-align: center;
  }

  .header-text h1 {
    font-size: 2.5rem;
  }

   .video-background video {
    top: 20%;
    position: relative;
    padding: 200px 0;
     background-attachment: fixed;
   background-position: center;
    transform: translate(-50%, -40%);
  }
   
  .home-content{
    display: none;
   
  }
  #services h1{
    font-size: 3.2rem;
  }

  #Skills h1 {
    font-size: 3rem;
    margin-top: -2rem;
    margin-left: 0;
    text-align: center;
  }

   .skills {
    margin-top: 130px;
    margin-left: -10px;
    max-width: 900px;
  }
  .skills-grid {
    margin-left: -4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
  }

  .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    margin: 0 !important;
    width: 100%;
    max-width: 22rem;
    height: auto !important;
  }
  .skill-category{
     margin-left: 10rem !important;
  }
  .skill-categorytwo{
    margin-left: -4rem !important;
  }
  .skill-categorythree{
    margin-left: 10rem !important;
  }
  .skill-categoryfour{
    margin-left: -4rem !important;
  }

  .skills {
    padding: 10px 26px;
    margin-top: 30px !important;
    width:80%;
     box-sizing: border-box;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    flex-direction: column;
    align-items: center; 
   margin-left: 7rem;   
   margin-right: 1rem;  
  }
   #contact {
    padding: 4rem 0;
    margin-bottom: -10rem;
  }

  .contact-wrapper {
    padding: 2rem 1rem;
    margin: 3rem auto 0;
  }

  .contact-left {
    margin-top: 2.5rem;
    margin-right: 0; 
    text-align: center;
  }

  .contact-left h1 {
    margin-top: -1rem;
    font-size: 3.8rem !important;
  }

  .contact-left p {
    font-size: 1.1rem;
  }

  .contact-box {
    margin: 3rem auto 0;
    max-width: 20rem;
    transform: none; 
    box-shadow: 0 0 0.75rem rgba(255, 255, 255, 0.07);
    padding: 1.5rem 1rem;
  }

  .contact-box h3 {
    font-size: 1.4rem;
  }

  .contact-box input,
  .contact-box textarea,
  .contact-box select {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .contact-box button {
    font-size: 0.95rem;
    padding: 0.65rem;
  }

  .email-btn {
    margin-left: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }

  .email-btn i {
    font-size: 1rem;
  }
}
@media (min-width: 1281px) and (max-width: 1440px) and (min-height: 1000px) and (max-height: 1080px) {
  .home {
    padding-top: 6rem;
    height: 100vh;
    overflow: hidden;
  }

  .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% center; 
  }


 
  .hero-text {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .home-content {
    gap: 2rem;
  }
}

  



 @media (max-width: 1200px) {
    .skills {
    padding: 10px 26px;
    margin-top: 30px !important;
    width:80%;
     box-sizing: border-box;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    flex-direction: column;
    align-items: center; 
   margin-left: 7rem;   
   margin-right: 1rem;  
  }
}
@media (max-width: 1160px){
   .services-list {
    grid-template-columns: 1fr;
  }
}



@media (max-width: 1140px) {
    .skills {
    padding: 10px 26px;
    margin-top: 30px !important;
    width:80%;
     box-sizing: border-box;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    flex-direction: column;
    align-items: center; 
   margin-left: 6.3rem;   
   margin-right: 1rem;  
  }
  
}
@media only screen 
  and (device-width: 1024px) 
  and (device-height: 1366px) 
  and (orientation: portrait) 
  and (-webkit-min-device-pixel-ratio: 2) {
  
  .video-background {
    display: none !important;
  }

  .home {
    background-image: url('images/About3dremakeedit.webp');
    background-position: center 40%;
    background-size: cover;
  }



  /* Optional overlay */
  .home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
  }

  .home-content {
    position: relative;
    z-index: 1;
  }
  .modal-content{
    border: none !important;
  }
}

@media (max-width: 1024px) {
  /* ----- NAVIGATION ----- */
     nav {
    padding: 0 20px;
    height: auto;
    flex-wrap: wrap;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 6px 10px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }

  .nav-container .logo img {
    width: 50px !important;
    margin-left: 0;
    margin-top: 0;
  }

  #sidemenu {
    margin-left: 0;
    margin-top: 0;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contactadjust {
    margin-left: 0;
    padding: 5px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .header-text {
    margin-top: 25%;
    font-size: 1.4rem;
    margin-left: 0;
    text-align: center;
  }

  .header-text h1 {
    font-size: 2.5rem;
  }
  .home {
   background-image: url(images/About3dremakeedit.webp);
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center 28%;
  
    
 }
  .video-background{
    display: none !important;
  }
  /* ----- SERVICES Section Adjustments ----- */
  .services-list {
    grid-template-columns: 1fr;
  }

  /* ----- TECH STACK Adjustments ----- */
 .stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
  }

  .icon-box {
    width: 100px;
    height: 100px;
    padding: 16px;
  }

  .label {
    font-size: 0.6rem;
   
  }

  .tooltip {
    display: none;
  }

  .tech-stack {
    margin-top: 4.5rem;
    padding: 20px;
  }
  .bg-wrapper {
    background-image: none;
    position: relative;
  }
  #particles-skills {
    display: block;
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  #skills .fas {
  color: #64ffda; 
  }
   #Skills {
  /* padding: 4rem 1rem; */
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-position: 25% center;
  }

  #Skills h1 {
    font-size: 3rem;
    margin-top: -2rem;
    margin-left: 0;
    text-align: center;
  }

   .skills {
    margin-top: 130px;
    margin-left: -10px;
    max-width: 900px;
    border-left:none ;
    border-right: none;
    border-top: none;
    border-bottom: none;
  }
  .skills-grid {
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
  }

  .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    margin: 0 !important;
    width: 100%;
    max-width: 22rem;
    height: auto !important;
   border: 1px solid  #64ffda; 
  }
    .skill-category ul,
  .skill-categorytwo ul,
  .skill-categorythree ul,
  .skill-categoryfour ul {
    margin-top: 0.5rem;
  }
   .skill-category ul li,
  .skill-categorytwo ul li,
  .skill-categorythree ul li,
  .skill-categoryfour ul li {
    list-style: none;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    
  }
  .tab{
    font-size: 1.1rem;
  }

  .skills {
    padding: 10px 26px;
    margin-top: 30px !important;
    width:80%;
     box-sizing: border-box;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    flex-direction: column;
    align-items: center; 
   margin-left: 5rem;   
   margin-right: 1rem;  
  }
  .fab {
    color:  #64ffda !important;
  }
  .progress div {
  background: linear-gradient(90deg, #64ffda, #154758);
  }
  .projects {
    display: flex;
    flex-direction: column;
    gap: 20px; 
 }

    .category-box {
   width: 108%; 
   border-bottom: none;
   border-top: none;
   border-left:none;
   border-right: none;  
  }
  .category-buttons button {
   border-radius: 10px;
   font-size: 0.8rem;
   background-color: none;
   border: 1px solid  #64ffda;
  }
  .category-buttons button.active,
  .category-buttons button:hover {
  background: rgb(36, 37, 38);
  color: white;
  border: 2px solid #64ffda; 
  }
    .subcategory-buttons {
    margin-left: 0.3rem;

  }
  .subcategory-buttons button:hover {
    background-color: #2f7f78;
    color: #fff;
    transform: scale(1.05);
  }

  .subcategory-buttons button.active {
    background-color: hsl(160, 3%, 43%);
    color: white;
    box-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
  }
  #project h1{
   margin-left: 1.2rem;
   }
  .project-card.enterbox-style{
    border:none;
  }
  .project-card{
    border:1px solid#64ffda; 
    display: flex;
    flex-direction: column !important;
    height: 100%;
    border-radius: 15px;
  
  }
  .enterbox-style .project-image {
    height: 505px !important; 
    width: 100%;
  }

  .project-image img {
    object-fit: cover;
    width: 100%;
    height: 120%;
  }
  .project-details{
    margin-top: 1rem !important;
  }
  .overlay-icon {
    right: -98px;
    font-size: 18px;
     background: none !important;
  }
  .overlay-icon1{
     background: none !important;
  }
  .globe-icon{
    margin-left: -19rem;
  } 
   .globe-icon1{
      margin-left: 10rem; 
  }
  .project-title {
    font-size: 1.2rem;
  }

  .project-card h3{
    margin-top: 2rem;
   }
   .view-project{
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 10px !important;
  }
  .view-project1{
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 10px !important;
  }
    .design-btn{
    border-radius: 10px !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  .gallery-grid {
    display: grid;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
  }

    .modal-content{
    border: none !important;
  }

  .gallery-grid img {
    width: 60%;
    border-radius: 10px; 
    display: block;
    object-fit: cover; 
  }
  .modal-content{
  border: 1px solid #64ffda;
  }

  .contact-wrapper {
    padding: 1.5rem 1rem;
      border:none;
   
  }
   
  .contact-left {
    margin: 2rem auto;
    text-align: center;
    margin-right: 0;
  }

  .contact-box {
    transform: none;
    margin: 2rem auto;
    padding: 1rem;
  }
   .contact-box select {
    width: 100%;
    max-width: 100%;
  }
      .quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
    padding: 20px;
    margin: 40px auto 80px;
    max-width: 120%;
    box-sizing: border-box;
    margin-top: 20px;
    
  }

  .quick-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    margin-top: -1.9rem;
  }
    .titl h1 {
    font-size: 1.5rem;
    margin: 10px 0 20px 0;
    padding: 8px 16px;
    text-align: center;
    margin-top: -160px;
  }

  .quick-links ul li {
    flex: 1 1 auto;
    text-align: center;
  }

 .quick-links ul li a {
  display: inline-block;
  white-space: nowrap;    
  overflow: hidden;             
  text-overflow: ellipsis;      
  max-width: 170px;             
  padding: 10px 14px;
  font-size: 0.8rem;
  border-radius: 6px;
  color: #eee;
  text-decoration: none;
  text-transform: capitalize;
 }
 .back-to-top {
    width: 56px;
  }
    .copyright .ticker-text {
    font-size: 0.75rem; /* shrink to fit */
  }
}

@media (max-width: 1024px) and (max-height: 868px) and (orientation: landscape) {
  .home {
    height: calc(var(--vh, 1vh) * 190); 
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
     
  }

  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
  }

  


}
@media (max-width: 1024px) and (orientation: landscape) {
  .home {
    height: calc(var(--vh) * 130); 
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
  }
     nav {
    padding: 0 20px;
    height: auto;
    flex-wrap: wrap;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 6px 10px;
  }

  nav ul li a {
    font-size: 0.95rem;
  }

  .nav-container .logo img {
    width: 50px !important;
    margin-left: 0;
    margin-top: 0;
  }

  #sidemenu {
    margin-left: 0;
    margin-top: 0;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .contactadjust {
    margin-left: 0;
    padding: 5px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
  

 
}





@media (max-width: 960px) {
  .home {
   background-image: url(images/About3dremakeedit.webp);
   background-repeat: no-repeat;
   background-size: cover;
   background-position: center 28%;
 }
  .video-background {
    display: none;
  }
 .project-details{
  margin-top: -7rem;
 }
  

  .header-text h1 {
    font-size: 2.5rem;
  }

  .modal-content{
    border: none !important;
  }
  
}

@media  (max-width: 888px) {
  .about-col-2 img{
    display: none;
    
  }

}


@media screen and (max-width: 896px) and (orientation: landscape) {
  .home {
    height: calc(var(--vh) * 280); 
    max-height: 400vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
  }
   .project-details {
    padding: 1rem;
    margin-top: 1rem;
  }
   .project-image {
    height: 100px;
  }
 

}






@media  (max-width: 768px){
    body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-size: 14px;
    background-size: cover;
    background-position: center;
  }

  .video-background{
    display: none;
  }
  nav ul {
    flex-direction: column;
    position: fixed;
    top: -0.5rem;
    right: -100%;
    height: 50vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    z-index: 999;
  }

  nav ul.show-menu {
    right: 0;
  }

  .nav-circle {
    display: flex;
    position: absolute;
    top: 14px;
    right: 20px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
  }

   .logo{
    margin-left: -1rem;
   }
  .line {
    width: 20px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    margin-left: 30px;
  }

  .bar-2 {
    width: 20px;
    margin-right: 10px;
  }

  .bar-3 {
    width: 20px;
    margin-right: 20px;
  }

  .contactadjust {
    margin-left: 0;
    margin-top: 10px;
  }
 .home {
     background-repeat: no-repeat;
      background-size: cover;
      background-position: center top;
    background-position: 16% center;
    background-image: url(images/About3dremakeedit.webp);
 }
 


  .header-text h1 {
    font-size: 2.5rem;
  }


  .home-content {
    display: none;
  }
  

  .zigzag-wrapper {
    display: none;
  }
  #about{
    margin-top: -8.3rem;
  }
  .about-col-1 p{
    font-size:0.9rem !important;
  }
  #about h1{
    font-size: 3rem;
    margin-top: 2.1rem;
  }
  .about-col-2 img{
    display: none;
  }
  .readmore-content {
    display: none;
  }

  .readmore-content.show {
    display: block;
  }

  .readmore-toggle {
    display: inline-block;
    margin-top: 1rem;
    background-color:#64ffda;
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
  }
  .services-list {
    grid-template-columns: 1fr;
  }
    .services-list p{
      font-size: 0.79rem;
    }
   #services h1{
    font-size: 1.9rem  !important;
    margin-left: -0.4rem;
   }
  .icon-box {
    width: 5rem;
    height: 5rem;
    padding: 1rem;
  }
  
 .stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;

  }

  .icon-box {
    width: 100px;
    height: 100px;
    padding: 16px;
  }

  .label {
    font-size: 0.6rem;
   
  }

  .tooltip {
    display: none;
  }

  .tech-stack {
    margin-top: 12.5rem;
    padding: 20px;
  }
  .tech-stack h2{
    font-size: 1.8rem;
  }

  /* SKILLS SECTION */
   #particles-skills {
    display: block;
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  #skills .fas {
  color: #64ffda; 
  }
 #Skills {
   text-align: center;
   margin-top: -10rem;
   position: relative;
   z-index: 2;
   padding-top: 19rem !important;
   
  }
  #Skills h1{
  margin-left: 1.0rem;
  font-size: 2rem;
  }

  .skills-grid {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;

  }

  .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    width: 110%;
    max-width: 500px;
    margin: 1rem auto;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 15px;
    border: 1px solid  #64ffda; 
  }
    .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    padding: 1rem 2rem;
  }
   .skill-categorytwo{
  height: auto;
  min-height: 30vh; 
  width: 110%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
  }
  .skill-categorythree{
   height: auto;
  min-height: 30vh; 
  width: 110%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
  }
  .skill-categoryfour {

  height: auto;
  min-height: 30vh; 
  width: 110%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
  }


  .skill-category ul,
  .skill-categorytwo ul,
  .skill-categorythree ul,
  .skill-categoryfour ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    gap: 1rem;
     margin-top: 1rem;
     font-size: 0.96rem !important;
     
  }

  .skill-category ul li,
  .skill-categorytwo ul li,
  .skill-categorythree ul li,
  .skill-categoryfour ul li {
    list-style: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    
   
  }

  .skills {
    width: 100%;         
    max-width: none;     
    margin: 6rem auto 0;  
    padding: 1.5rem 1rem;
    border-left:none ;
    border-right: none;
    border-top: none;
    border-bottom: none;
    font-size: 0.9rem;
   
  }
  .fab {
    color:  #64ffda !important;
  }
 
    
  .progress div {
  background: linear-gradient(90deg, #64ffda, #154758);
  }
  .tab{
    font-size: 0.9rem;
  }
  
  #projects{
    margin-top: -200px;
  }
  .project-card h3{
    font-size: 20px;
  }
   .bg-wrapper {
    background-image: none;
    position: relative;
    z-index: 0;
    min-height: 100dvh;
    overflow: hidden;
    margin-top: -2rem;
    
  }
  /* PROJECTS */

  #project {
   margin-top: -20rem;
    
  }
  #project h1{
    font-size: 2.3rem !important;  
  }

  
  .category-box {
   width: 108%; 
   border-bottom: none;
   border-top: none;
   border-left:none;
   border-right: none;
   

 
  }
  .category-buttons{
    color: white!important;
     width: 100%;
     margin-left: -0.4rem;
  }
 .category-buttons button {
  border-radius: 16px;
  font-size: 0.8rem;
  background-color: none;
   border: 1px solid  #64ffda;
  
 }
 .category-buttons button.active,
.category-buttons button:hover {
  background: rgb(36, 37, 38);
  color: white;
  border: 2px solid #64ffda; 
}
 
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 0 1rem;
  }
  .project-subtitle.project-card {
   margin-left: -1rem; 
   
  }
  .subcategory-buttons {
    margin-left: -0.7rem;

  }
  .subcategory-buttons button:hover {
    background-color: #2f7f78;
    color: #fff;
    transform: scale(1.05);
  }

  .subcategory-buttons button.active {
    background-color: hsl(160, 3%, 43%);
    color: white;
    box-shadow: 0 0 10px rgba(0, 204, 102, 0.3);
  }
  .modal-content{
    border-radius: 15px;
    /* border: 1px solid #64ffda; */
    border-left: none;
    border-right: none;
  
  }
  
  .project-card.enterbox-style{
    border-radius: 1rem;
    border:none;
    flex: 1 1 100%;
    
  }
  .enterbox-style {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  background: #121212;
  color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(172, 176, 174, 0.4);
  min-height: 100%; /* ensure equal height */
  }
  .view-project{
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 10px !important;
  }
  .view-project1{
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 10px !important;
  }
   .enterbox-style.project-image {
    height: 190px !important;
     width: 110% !important;
  }
  .project-details{
    margin-top: 1rem !important;
  }

  .enterbox-style.project-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
  }
  .overlay-icon {
  position: absolute;
  top: 50%;
  left: 33% !important;
  right: -1rem;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  font-size: 20px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
  width: 40px;        
  height: 40px;
  margin-left: 5rem;
  margin-top: 1rem !important;
  display: flex;   
}
.overlay-icon1{
   margin-left: -0.1rem;
     margin-top: 1rem !important;
}
.close {
  position: fixed !important;
}
.globe-icon {
  color: rgb(24, 174, 154);
  font-size: 20px;
  margin-left:-0.1rem; 
 
}
.globe-icon1{
  font-size: 20px;
  color: purple;
  margin-left:-0.1rem;

}
  
.project-card {
    flex: 0 1 100%;
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #64ffda;
    border-bottom: none !important;
    border-top: none !important;
    background: linear-gradient(90deg, #3c7a0600, #000000);
    box-sizing: border-box;
      
  }
   .project-card h3{
    margin-top: 2.1rem;
   }
  .project-card img {
    margin-top: 50px;
  }
  .project-card button {
    margin-top: auto;
    margin-bottom: 40px;
  }
  #project h1{
    font-size: 45px;
  }
  .design-btn{
    border-radius: 10px !important;
    border-top: none !important;
    border-bottom: none !important;
  }
  .projectlogo {
    margin-left: 15px;
    width: 100px;
  }
  .modal-content{
    border: none !important;
  }
   .close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  }

  .gallery-grid {
    flex-direction: column;
    align-items: center;
    width: 380px;
  }

  .gallery-grid img {
    width: 100%; 
    margin-left: 0.3rem !important;
  }
  /* DESIGN ADJUSTMENTS */
  .logodesign {
    margin-left: -90px;
    height: 100px;
    width: 290px;
    margin-top: 20px;
    margin-bottom: 50px;
  }
  .logodesign2 {
    margin-left: 20px;
    margin-top: 20px;
  }
  .logodesign img {
    max-height: 100%;
    width: auto;
  }
  .socialmediacon {
    margin-left: -200px;
  }
  .socialmediacon h3 {
    margin-left: 200px;
  }

  .photoeditdesign {
    width: 150px;
    margin-bottom: 55px;
    margin-top: 60px;
  }
 
  .contact-wrapper {
    padding: 1.5rem 1rem;
     border-top: none;
     border-left: none;
     border-right: none;
     border-bottom: none;
   
  }
  
  .contact-left {
    margin: 2rem auto;
    text-align: center;
    margin-right: 0;
  }

   .contact-left p{
    font-size: 1rem;
   }

  .contact-left h1{
    font-size: 2.4rem !important;
  }

  .contact-box {
    transform: none;
    margin: 2rem auto;
    padding: 1rem;
    margin-top: -1rem;
  }
  .contact-box select {
    width: 100%;
    max-width: 100%;
  }

  .email-btn{
    margin-top: 0.7rem;
  }
   .quick-links {
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 20px 10px;
    margin-top: 30px;
    margin-bottom: 160px;
    margin-left:0.3rem;
  }

  .titl h1 {
    font-size: 1.5rem;
    margin: 10px 0 20px 0;
    padding: 8px 16px;
    text-align: center;
  }

  .quick-links ul {
    flex-direction: column;
    align-items: center;
    position: static;
    margin: 0;
    padding: 0;
    margin-top: -30px;

  }
  

  .quick-links ul li {
    width: 100%;
    text-align: center;

  }

  .quick-links ul li a {
    display: block;
    width: 90%;
    margin: 6px auto;
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
  }

  .copyright {
    height: 2.75rem;
    padding: 0.4rem 0;
    font-size: 0.75rem;
  }

  .ticker-text {
    margin-top: 0.3rem;
    font-size: 0.8rem;
  }

  .back-to-top {
    bottom: 4.5rem;
    right: 1rem;
    width: 46px;
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
  
  }
  #services h1{
    font-size: 3rem;
  }
}


@media screen and (max-width: 768px) and (orientation: landscape) {
    .home{
    min-height: 230vh;

  }

}
@media (max-width: 768px), (max-height: 700px) {
  .home {
    flex-direction: column;
    overflow-y: auto;
    background-attachment: scroll;
    padding: 1.5rem;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .home {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
    overflow-y: auto;
    background-attachment: scroll;
  }
}
@media (max-width:700px){
  .overlay-icon{
    margin-top:-4rem;
  }
  .overlay-icon1{
    margin-top: -4rem;
  }
}
@media (max-width:500px){
  .category-box {
   margin-left: -1.0rem;
  } 
}

@media screen and (max-width: 480px) {
  .enterbox-style .project-image {
    height: 225px !important; /* reduce height for small screens */
  }

  .enterbox-style .project-image img {
    object-fit: cover; /* still fill space */
  }
  .overlay-icon{
     margin-left: 3rem;
  }
  .close {
  position: fixed !important;
  }
}
@media screen and (max-width: 400px) {
  .enterbox-style .project-image {
    height: 200px !important; /* reduce height for small screens */
  }

  .enterbox-style .project-image img {
    object-fit: cover; /* still fill space */
  }

  .close {
  position: fixed !important;
  }
}

@media (max-width:464px){
   .home{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-position: 20% center !important;
   }
    .gallery-grid img {
    width: 77%; 
    margin-left: -2rem;
  }
  .skills{
   width: 120%;
   margin-left: -2rem;
 }
  .project-details{
    margin-top: -9rem;
  }

  .close {
  position: fixed !important;
  }
}
@media (max-width:412px){
  .home{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-position: 20% center !important;
   }
    .category-box {
   width: 109% !important; 
   margin-left: -0.4rem !important;
  }


}





@media (max-width:400px){
  .gallery-grid img {
    width: 77%; 
    margin-left: -7rem;
  }
 
 
}
@media (max-width:393px){
   .home{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-position: 20% center !important;
   }
   .category-box {
   width: 119%; 
   margin-left: -0.8rem;
  }
  .category-buttons{
    color: white!important;
     width: 100%;
  }
   .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    width: 115%;
    max-width: 500px;
    margin: 1rem auto;
    padding: 1rem;
    box-sizing: border-box;
    background-color: rgba(255, 251, 251, 0.05); 
    border-radius: 15px;
    border: 1px solid  #64ffda; 
  }
    .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    padding: 1rem 2rem;
  }
   .skill-categorytwo{
  height: auto;
  min-height: 30vh; 
  width: 115%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
  }
  .skill-categorythree{
   height: auto;
  min-height: 30vh; 
  width: 115%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
  }
  .skill-categoryfour {

  height: auto;
  min-height: 30vh; 
  width: 115%;
  max-width: 500px;
  margin: 1rem auto;
  box-sizing: border-box;
  }

  .gallery-grid {
    flex-direction: column;
    align-items: center;
    width: 380px
  }

  .gallery-grid img {
    width: 70% !important;
    margin-left: -0.3rem !important;
  }

}

@media (max-width:360px){
  .home{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-position: 20% center !important;
   }
   .category-box {
   width:140%; 
   margin-left: -3.1rem;
  }
  
  .skills-grid {
    max-width: 150%;
    width: 109%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
    margin-left: -0.8rem;
  
  }
  .skills {
    width: 105%;         
    max-width: none;     
    margin: 6rem auto 0;  
    padding: 1.5rem 1rem;
    border-left:none ;
    border-right: none;
    border-top: none;
    border-bottom: none;
  }
    .gallery-grid {
    flex-direction: column;
    align-items: center;
    width: 380px;
  }

  .gallery-grid img {
    width: 65%; 
    margin-left: -0.3rem !important;
  }

   
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .home{
    min-height: 230vh

  }

}

@media (max-width: 320px) {
  .copyright {
    height: 2.5rem;
    font-size: 0.7rem;
    padding: 0.3rem 0;
  }

  .ticker-text {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    padding: 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
    .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    width: 121%;
    max-width: 500px;
    margin: 1rem auto;
    padding: 1rem;
    box-sizing: border-box;
    background-color: rgba(255, 251, 251, 0.05); 
    border-radius: 15px;
    border: 1px solid  #64ffda; 
  }
    .skill-category,
  .skill-categorytwo,
  .skill-categorythree,
  .skill-categoryfour {
    padding: 1rem 2rem;
  }
   .skill-categorytwo{
  height: auto;
  min-height: 30vh; 
  width: 121%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
  }
  .skill-categorythree{
   height: auto;
  min-height: 30vh; 
  width: 121%;
  max-width: 500px;
  margin: 1rem auto;
  padding: 1rem;
  box-sizing: border-box;
  }
  .skill-categoryfour {

  height: auto;
  min-height: 30vh; 
  width: 121%;
  max-width: 500px;
  margin: 1rem auto;
  box-sizing: border-box;
  }
  
   .category-buttons button {
    font-size: 0.73rem;
   }
  #project h1{
    font-size: 2rem !important;
  }
  .gallery-grid{
    width: 138%;
  }
}


