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

html,
body {
  height: 100%;
  width: 100vw;
}

/* General Styles */
body {
  font-family: Gilroy;
  background-color: #0a192f;
  color: #64ffda;
  overflow-x: hidden;
}


#content{
  display: none;
}
/* Loader container styles */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999; /* High z-index to ensure it stays above other content */
  background-color: #0a192f;
  transition: transform 1s ease-in-out, opacity 0.5s ease-in-out;
}

/* Only apply the font-size scaling globally if necessary */
:root {
  --hue: 223;
  --bg: hsl(var(--hue), 10%, 90%);
  --fg: hsl(var(--hue), 10%, 10%);
  font-size: 16px; /* Default font size for other elements */
}

/* SVG loader animation settings */
.pl, .pl__worm {
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

.pl {
  animation-name: bump;
  animation-timing-function: linear;
  width: 8em;
  height: 8em;
}

.pl__ring {
  stroke: hsla(var(--hue), 10%, 10%, 0.1);
  transition: stroke 0.3s;
}

.pl__worm {
  animation-name: worm;
  animation-timing-function: cubic-bezier(0.42, 0.17, 0.75, 0.83);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(var(--hue), 10%, 10%);
    --fg: hsl(var(--hue), 10%, 90%);
  }
  .pl__ring {
    stroke: hsla(var(--hue), 10%, 90%, 0.1);
  }
}

/* Animations */
@keyframes bump {
  from, 42%, 46%, 51%, 55%, 59%, 63%, 67%, 71%, 74%, 78%, 81%, 85%, 88%, 92%, to {
    transform: translate(0, 0);
  }
  44% { transform: translate(1.33%, 6.75%); }
  53% { transform: translate(-16.67%, -0.54%); }
  61% { transform: translate(3.66%, -2.46%); }
  69% { transform: translate(-0.59%, 15.27%); }
  76% { transform: translate(-1.92%, -4.68%); }
  83% { transform: translate(9.38%, 0.96%); }
  90% { transform: translate(-4.55%, 1.98%); }
}

@keyframes worm {
  from { stroke-dashoffset: 10; }
  25% { stroke-dashoffset: 295; }
  to { stroke-dashoffset: 1165; }
}

/* Rotate animation for SVG loader */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optional: Apply rotation to loader (if desired) */
.pl {
  animation: rotate 5s linear infinite;
}



/* Style the scrollbar */
::-webkit-scrollbar {
  width: 10px; /* Slightly thinner scrollbar */
  height: 10px; /* Slightly thinner horizontal scrollbar */
  border-radius: 5px; /* Rounded corners for the scrollbar */
}

/* Style the scrollbar track (background area) */
::-webkit-scrollbar-track {
 
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
}

/* Style the scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4e7ea3, #2d3a4b); /* Gradient thumb for more depth */
  border-radius: 5px; /* Rounded corners */
  border: 3px solid transparent; /* Transparent border around the thumb */
  background-clip: content-box; /* Makes the thumb look cleaner */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Slight shadow for depth */
}

/* Hover effect for the thumb */
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #3a5775, #1f2d38); /* Darker gradient when hovered */
  transition: background 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* Darker shadow on hover */
}

/* Optional: Style for the scrollbar corner (for both vertical and horizontal scrollbar intersection) */
::-webkit-scrollbar-corner {
  background-color: #f1f1f1; /* Same as the track color */
}


.navbar {
  z-index: 98;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 45px;
  padding-top: 2%;
  /* Combines padding-top and left-right padding */
  height: 70px;
  background-color: #0a192f;
  z-index: 1000;
  /* Keeps the navbar on top of other elements */
  transform: translateY(0);
  /* Default position */
  transition: transform 0.3s ease;
  /* Smooth transition for showing/hiding */
}



.logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo img {
  height: 50px;
  width: 50px;
  rotate: 90deg;
  margin-right: 10px;
}

.logo span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-80%, -55%);
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 0.2%;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links li {
  font-size: 13px;
  transition: transform 0.3s ease,
}

.nav-links a {
  text-decoration: none;
  color: #c9cfe0;
  font-size: 13px;
}

.nav-links a span {
  color: #64ffda;
  font-size: 13px;
  margin-right: 3px;
  font-family: 'Courier New', monospace;
}

.nav-links a:hover {
  color: #64ffda;
}

.resume-btn {
  position: absolute;
  right: 0;
  top: 0;
  padding: 10px 18px;
  border: 1px solid #64ffda;
  color: #64ffda;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  background-color: #0A192F;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}


.resume-btn:hover {
  transform: translate(-5px, -5px);
  /* Lifts up diagonally */
}

.box {
  padding: 21px 42px;
  border-radius: 4px;
  background-color: #64ffda;
  position: relative;
}



.right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

@media (max-width: 580px) {
  .navbar {
    display: flex;
    width: 100vw;
    align-items: center;
    justify-content: center;
  }


  .nav-links {

    gap: 20px;
  }

  .nav-links a {
    text-decoration: none;
    color: #c9cfe0;
    font-size: 0.8rem;
  }

  .nav-links a span {
    display: none;
  }

  .logo {
    display: none;
  }

  .socialicondesign {
    opacity: 0;

  }

  .email {
    opacity: 0;
  }

}


.socialicondesign {
  position: absolute;
  height: 45vh;
  width: 3%;
  bottom: 0;
  left: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: fixed;
}

.socialicondesign a {
  font-size: 1.5vw;
  color: #8892B0;
  /* Default color */
  transition: color 0.3s ease, transform 0.3s ease;
  /* Smooth color and transform transition */
}

.socialicondesign a:hover {
  cursor: pointer;
  color: #64ffda;
  /* Hover color */
  transform: translateY(-3px);
  /* Moves the icon up */
}


.line {
  height: 30vh;
  width: 4%;
  align-items: center;
  background-color: #8892B0;
}

.email {
  position: absolute;
  height: 45vh;
  width: 3%;
  bottom: -10%;
  right: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 105px;
  position: fixed;
}

.email h1 {
  rotate: 90deg;
  font-size: 1vw;
  font-weight: 300;
  color: #8892B0;
}

.email h1:hover {
  cursor: pointer;
  color: #64ffda;
  /* Moves the icon up */
}

/* General styles for large screens */
.page1 {
  z-index: 98;
  display: flex;
  flex-direction: column;
  padding-left: 270px;
  padding-bottom: 5%;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.page1 h1 {
  font-size: 2vw;
  font-weight: 400;
  color: #64ffda;
  word-spacing: 6px;
  margin-top: 2%;
}

.page1 h2 {
  font-size: 5vw;
  font-weight: 550;
  color: #CCD6F6;
  margin-top: -1.2%;
}

.profilecontainer {
  left: 48%;
  margin-top: -42%;
  position: relative;
  height: 500px;
  width: 500px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  background: linear-gradient(135deg, #64ffda, #0a192f);
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.bg-shapes .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  animation: moveShapes 8s infinite ease-in-out;
}

.circle.large {
  width: 320px;
  height: 320px;
  background: rgba(100, 255, 218, 0.1);
  top: -40px;
  left: 80px;
}

.circle.medium {
  width: 200px;
  height: 200px;
  background: rgba(100, 255, 218, 0.2);
  top: 140px;
  right: 40px;
}

.circle.small {
  width: 120px;
  height: 120px;
  background: rgba(100, 255, 218, 0.3);
  bottom: 20px;
  left: 100px;
}

.bg-shapes .pulse {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.2);
  animation: pulseEffect 3s infinite ease-in-out;
  z-index: 0;
}

.profile {
  position: relative;
  z-index: 2;
  width: 77%;
  height: 77%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(100, 255, 218, 0.8);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.5);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.profilecontainer:hover .profile {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(100, 255, 218, 0.8);
}

.page1 h3 {
  font-size: 3.5vw;
  font-weight: 600;
  color: #8892B0;
  margin-top: -1%;
  margin-bottom: 10%;
}

.page1 h3 span {
  font-size: 6vh;
}

.page1 p {
  font-size: 1.3vw;
  color: #c9cfe0;
  width: 45%;
  margin-top: -8%;
  text-align: left;
}

.contact {
  position: relative;
  background-color: #64ffda;
  height: 7vh;
  width: 10vw;
  margin-top: 2%;
  border-radius: 5px;
  display: flex;
}

.btn {
  background-color: #0A192F;
  height: 7vh;
  width: 10vw;
  border: 2px solid #64ffda;
  align-items: center;
  justify-content: center;
  display: flex;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.btn h1 {
  font-size: 1.3vw;
  font-weight: 400;
  margin-top: -2%;
}

#page3 {
  opacity: 0;
}


.btn:hover {
  transform: translate(-7px, -7px);
  cursor: pointer;
}

/* Responsive adjustments for smaller screens */
@media only screen and (max-width: 768px) {
  .page1 {
    padding-left: 50px;
  }

  .page1 h1 {
    font-size: 4vw;
    margin-top: 85%;
  }

  .page1 h2 {
    font-size: 7vw;
  }

  .profilecontainer {
    margin-top: -20%;
    height: 300px;
    width: 300px;
    left: 50%;
    transform: translateX(-50%);
  }

  .profile {
    width: 80%;
    height: 80%;
  }

  .page1 h3 {
    font-size: 5vw;
    margin-top: 0;
  }

  .page1 p {
    font-size: 2vw;
    width: 80%;
    margin-top: 10%;
    text-align: center;
  }

  .contact,
  .btn {
    height: 10vh;
    width: 25vw;
  }

  .btn h1 {
    font-size: 2vw;
  }
}

@media only screen and (max-width: 480px) {
  .page1 {
    padding-left: 20px;
    height: 100vh; /* Set height to auto to prevent overflow */
    width: 100vw;
  }
 

  .page1 h1 {
    font-size: 8vw; /* Adjusted font size for smaller screens */
    margin-top: 73%; /* Adjusted margin to prevent overlap */
  }

  .page1 h2 {
    font-size: 12vw; /* Adjusted font size for readability */
  }

  .profilecontainer {
    margin-top: -200%; /* Adjusted margin to center properly */
    height: 230px; /* Set to a reasonable height */
    width: 230px; /* Set to a reasonable width */
    
  }
  .skill .tailwind{
margin-left: -5%;
  }

  .profile {
    width: 100%;
    height: 100%;
  }

  .page1 h3 {
    font-size: 6vw; /* Adjusted font size for readability */
  }

  .page1 h3 span {
    font-size: 6vw; /* Adjusted font size for readability */
  }

  .page1 p {
    font-size: 4vw; /* Adjusted font size for readability */
    width: 100%; /* Make the text container fit within the screen */
    margin-top: -4%; /* Reduced margin to prevent overlap */
    text-align: left;
  }

  .contact {

    margin-top: 5%; /* Adjusted to give more space above */
    height: 5.5vh;
    width: 38vw; /* Adjust width for better layout */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn {
    
    height: 5.5vh;
    width: 38vw; /* Adjust width for better layout */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn h1 {
    font-size: 4.5vw; /* Adjusted font size for better readability */
    margin: 0;
  }
}

/* ===== PAGE 2: SKILLS SECTION ===== */
.page2 {
  background: transparent;
  min-height: auto;
  padding: 50px 40px;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.page2::before {
  display: none;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.skills-header {
  text-align: center;
  margin-bottom: 50px;
}

.skills-title {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #64ffda 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: fadeInDown 0.8s ease-out;
}

.skills-subtitle {
  font-size: 1rem;
  color: #8892B0;
  font-weight: 300;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Skill Categories */
.skill-category {
  margin-bottom: 45px;
  animation: fadeInUp 0.8s ease-out backwards;
}

.skill-category:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-category:nth-child(3) {
  animation-delay: 0.4s;
}

.skill-category:nth-child(4) {
  animation-delay: 0.6s;
}

.category-title {
  font-size: 1.3rem;
  color: #64ffda;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(100, 255, 218, 0.3);
  letter-spacing: 1px;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  padding: 0;
}

/* Skill Card Styling */
.skill-card {
  background: linear-gradient(135deg, rgba(26, 37, 64, 0.4) 0%, rgba(40, 50, 80, 0.3) 100%);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 12px;
  padding: 18px 15px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
  transition: 0.5s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  background: linear-gradient(135deg, rgba(26, 37, 64, 0.6) 0%, rgba(40, 50, 80, 0.5) 100%);
  border-color: rgba(100, 255, 218, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(100, 255, 218, 0.12);
}

.skill-icon-wrapper {
  font-size: 2.2rem;
  color: #64ffda;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon-wrapper {
  transform: scale(1.15) rotateZ(5deg);
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.4));
}

.skill-img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.skill-card h4 {
  font-size: 0.95rem;
  color: #ccd6f6;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
  }

  .skills-title {
    font-size: 2.4rem;
  }

  .category-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .page2 {
    padding: 40px 20px;
  }

  .skills-header {
    margin-bottom: 35px;
  }

  .skills-title {
    font-size: 2rem;
  }

  .skills-subtitle {
    font-size: 0.9rem;
  }

  .skill-category {
    margin-bottom: 35px;
  }

  .category-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
  }

  .skill-card {
    padding: 15px 12px;
  }

  .skill-icon-wrapper {
    font-size: 2rem;
    height: 45px;
    margin-bottom: 10px;
  }

  .skill-card h4 {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page2 {
    padding: 30px 15px;
  }

  .skills-container {
    max-width: 100%;
  }

  .skills-title {
    font-size: 1.6rem;
  }

  .skills-subtitle {
    font-size: 0.8rem;
  }

  .category-title {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .skill-card {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .skill-icon-wrapper {
    font-size: 1.6rem;
    height: 40px;
    margin-bottom: 8px;
  }

  .skill-card h4 {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
}




.page3 {
  min-height: 100vh; /* ensure at least full viewport height */
  height: auto;     /* let content determine actual height */
  width: 100vw;
  padding-bottom: 8vh; /* give breathing room at the bottom for added projects */
}

.page3 h1 {
  font-size: 2vw;
  font-weight: 600;
  color: white;
  margin-left: 17%;
  margin-top: 5%;

}

.page3 .linee {
  width: 400px;
  height: 1px;
  background-color: #8892B0;
  margin-left: 38%;
  margin-top: -1.5%;
  animation: linee 2s infinite linear;
}

/* Freelancing Projects Section */
.freelance-section {
  margin-left: 17%;
  width: 65vw;
  margin-top: 15%;
  margin-bottom: 10%;
  text-align: center;
  padding: 40px 0;
  border-top: 2px solid rgba(100, 255, 218, 0.3);
  border-bottom: 2px solid rgba(100, 255, 218, 0.3);
  background: linear-gradient(180deg, rgba(100, 255, 218, 0.05) 0%, transparent 100%);
}

.freelance-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #64ffda 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.freelance-subtitle {
  font-size: 1rem;
  color: #8892B0;
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 15px;
}

.freelance-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #64ffda, transparent);
  margin: 0 auto;
}

.pjt1 {
  height: 45vh;
  margin-left: 17%;
  width: 65vw;
  margin-top: 10%;
  display: flex;

}

.left1 {
  position: relative;
  /* Enable pseudo-element positioning */
  height: 100%;
  width: 60%;
}

.left1 img {
  height: 100%;
  width: 100%;
}

.left1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all ease-in-out 0.2s;
  background-color: #45ffd497;
  /* Apply the semi-transparent color */
  z-index: 1;
  /* Ensure this overlay appears above the image */
}

.left1:hover::before {
  cursor: pointer;
  opacity: 0;
  /* Make the overlay invisible on hover */
}

.right1 {
  height: 100%;
  width: 40%;
  display: flex;
  text-align: right;
  flex-direction: column;
}

.right1 h1 {
  font-size: 1vw;
  margin-top: 8%;
  color: #64ffda;
  font-weight: 400;
}

.right1 h2 {
  font-size: 1.3vw;
  color: #c2cadf;
  margin-top: 3%;
  font-weight: 600;
}

.right1 .textbox {
  margin-top: 5%;
  height: 18vh;
  width: 120%;
  margin-left: -20%;
  z-index: 9;
  color: #8892B0;
  display: flex;
  align-items: center;
  padding-right: 5%;
  background-color: #112240;
}

.right1 .textbox p {
  margin-right: -4%;
}

.right1 .highlight {
  color: #64FFDA;
  /* Highlight color */
  font-weight: bold;
}

.right1 .skills1 {
  display: flex;
  align-items: center;
  justify-content: right;
  margin-top: 7%;

  gap: 25px;
}

.right1 .skills1 h4 {
  font-size: 0.8vw;
  color: #8892B0;
  font-weight: 600;
}
.right1 .skills1 h3{
  display: none;
}

.right1 .links {
  margin-top: 5%;
}

.right1 .links i {
  font-size: 1.5vw;
  margin-left: 10px;
  color: #8892B0;
  transition: color 0.3s ease;
}


.pjt2 {
  height: 44vh;
  margin-left: 17%;
  width: 65vw;
  margin-top: 10%;
  display: flex;

}

.left2 {
  position: relative;
  /* Enable pseudo-element positioning */
  height: 100%;
  width: 60%;
}

.left2 img {
  height: 100%;
  width: 100%;
}

.left2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all ease-in-out 0.2s;
  background-color: #45ffd497;
  /* Apply the semi-transparent color */
  z-index: 1;
  /* Ensure this overlay appears above the image */
}

.left2:hover::before {
  cursor: pointer;
  opacity: 0;
  /* Make the overlay invisible on hover */
}

.right2 {
  height: 100%;
  width: 40%;
  display: flex;
  text-align: left;
  flex-direction: column;

}

.right2 h1 {
  font-size: 1vw;
  margin-top: 8%;
  color: #64ffda;
  font-weight: 400;
  margin-left: 0%;
}

.right2 h2 {
  font-size: 1.01vw;
  color: #c2cadf;
  margin-top: 3%;
  font-weight: 600;
}

.right2 .textbox {
  margin-top: 5%;
  height: 18vh;
  width: 120%;

  z-index: 9;
  color: #8892B0;
  display: flex;
  align-items: center;
  padding-right: 5%;
  background-color: #112240;
}

.right2 .highlight {
  color: #64FFDA;
  /* Highlight color */
  font-weight: bold;
}

.right2 .skills1 {
  display: flex;
  align-items: center;
  justify-content: right;
  margin-top: 7%;

  gap: 25px;
}

.right2 .skills1 h4 {
  font-size: 0.8vw;
  color: #8892B0;
  font-weight: 600;
}
.right2 .skills1 h3{
  display: none;
}

.right2 .links {
  margin-top: 5%;
}

.right2 .links i {
  font-size: 1.5vw;
  margin-left: 10px;
  color: #8892B0;
  transition: color 0.3s ease;
}

/* For screens between 481px and 1024px (tablets and larger mobile devices) */
@media (min-width: 481px) and (max-width: 1024px) {
  .page3 {
    width: 100vw;
    height: auto; /* let content determine height on tablet */
    padding-bottom: 8vh;
  }
  
  .page3 h1 {
    font-size: 6vw;
    color: #64FFDA;
    margin-left: 5%;
  }

  .linee {
    display: block;
    width: 90%;
    height: 2px;
    background-color: #64FFDA;
    margin: 2% auto;
  }

  .pjt1,
  .pjt2 {
    padding-left: 5%;
    padding-right: 5%;
    border: 2px solid #64FFDA;
    width: 90%;
    height: 80vh;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    margin-top: 10%;
    border-radius: 15px;
  }

  .right1 {
    order: 1; /* Right content first */
  }

  .left1 {
    order: 2; /* Left content second */
  }

  .right2 {
    order: 1; /* Right content first */
  }

  .left2 {
    order: 2; /* Left content second */
  }

  .left1::before,
  .left2::before {
    content: none; /* Disable overlay for these screens */
  }

  .left1,
  .left2 {
    width: 90%;
    margin-top: 2%;
    text-align: center;
  }

  .left1 img,
  .left2 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .right1,
  .right2 {
    width: 90%;
    text-align: center;
    margin: auto;
  }

  .right1 h1,
  .right2 h1 {
    font-size: 5vw;
  }

  .right1 h2,
  .right2 h2 {
    font-size: 4.5vw;
  }

  .right1 .textbox,
  .right2 .textbox {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    font-weight: 500;
  }

  .skills1 {
    width: 90%;
    height: auto;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 400;
  }

  .right1 .skills1 h3,
  .right2 .skills1 h3 {
    font-size: 1.8vh;
    font-weight: 400;
  }

  .right1 .skills1 h4,
  .right2 .skills1 h4 {
    display: none;
  }

  .right1 .links i,
  .right2 .links i {
    font-size: 6vw;
    margin-top: -3%;
  }

  .loader {
    height: 100vh;
    width: 100vw;
  }
}


/* For screens up to 480px (small mobile devices) */
@media (max-width: 480px) {
  .page3{
    width: 100vw;
    height: auto;
  }
  .page3 h1 {
    font-size: 6vw;
    color: #64FFDA;
    margin-left: 3%;
  }
  .linee{
    display: none;
  }

  
  .pjt1,
  .pjt2 {
    padding-left: 5%;
    padding-right: 5%;
    border: 2px solid #64ffda;
    width: 96%;
    height: 74vh;
    margin-left: 2%;
    flex-direction: column;
    margin-top: 15%;
    border-radius: 10px;
  }
 
  
  .right1 {
    order: 1; /* Place this first */
  }

  .left1 {
    order: 2; /* Place this second */
  }
  .right2 {
    order: 1; /* Place this first */
  }

  .left2 {
    order: 2; /* Place this second */
  }
  .left1::before {
    content: none; /* Disable the overlay for small screens */
  }
  .left2::before {
    content: none; /* Disable the overlay for small screens */
  }

  .left1,
  .left2 {
    width: 100%;
    margin-top: 5%;
  }


  .left1 img,
  .left2 img {
    width: 100%;
    height: auto;
  }

  .right1,
  .right2 {
    width: 100%;
    text-align: center;
  }

  .right1 h1,
  .right2 h1 {
    font-size: 5vw;
  }

  .right1 h2,
  .right2 h2 {
    font-size: 6vw;
  }

  .right1 .textbox,
  .right2 .textbox {
    width: 95%;
    margin-left: 2.5%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
  }
  .skills1{
 width: 100%;
    height: 3vh;
  
 color: #ffffff;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 600;

  }
  .right2 .skills1 {
    justify-content: center;
  }
  .right1 .skills1 {
    justify-content: center;
  }
  .right1 .skills1 h3{
    display: initial;
    font-size: 1.3vh;
    font-weight: 400;
  }
  .right1 .skills1 h4{
    display: none;
  }
  .right2 .skills1 h3{
    display: initial;
    font-size: 1.1vh;
    font-weight: 400;
  }
  .right2 .skills1 h4{
    display: none;
  }
  .right1 .links i,
  .right2 .links i {
    font-size: 8vw;
   
   
  }

 
}



/* Base Styling (Desktop View) */
.page4 {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page4 h2{
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 5%;
}
/* Contact Container Styling */
.contact-container {
  width: 90%;
  max-width: 700px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(17, 34, 64, 0.8) 0%, rgba(26, 37, 64, 0.8) 100%);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: all 0.3s ease;
  transform: scale(0.98);
}

.contact-container:hover {
  transform: scale(1);
  box-shadow: 0 25px 50px rgba(100, 255, 218, 0.15);
  border-color: rgba(100, 255, 218, 0.4);
}

.contact-container h2 {
  font-size: 2rem;
  color: #64ffda;
  margin-bottom: 30px;
  font-weight: 700;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  background: rgba(10, 25, 47, 0.6);
  border: 1.5px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  color: #ccd6f6;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8892b0;
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(10, 25, 47, 0.8);
  border-color: #64ffda;
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.contact-container button {
  padding: 12px 30px;
  background: linear-gradient(135deg, #64ffda 0%, #00d4ff 100%);
  color: #0a192f;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.contact-container button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#formStatus {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  min-height: 20px;
}

#formStatus.success {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

#formStatus.error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Redesigned Social Media Section */
.social-media {
  margin-top: 40px;
  text-align: center;
  background-color: #0A192F; /* Primary dark background */
  padding: 30px;
  border-radius: 12px; /* Slightly rounded corners for a modern look */
  box-shadow: 0 4px 15px rgba(10, 25, 47, 0.6); /* Subtle shadow for depth */
}

.social-media h3 {
  font-size: 1.8rem;
  color: #58E1C4; /* Secondary theme color */
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif; /* Clean, modern font */
  text-transform: capitalize; /* Simple and professional styling */
  letter-spacing: 1px; /* Slight spacing for elegance */
  border-bottom: 2px solid #58E1C4; /* Highlight the section */
  display: inline-block;
  padding-bottom: 5px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap; /* Ensures responsiveness */
  gap: 25px; /* Balanced spacing between icons */
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #0A192F; /* Consistent dark theme */
  border-radius: 50%; /* Circular icons */
  border: 2px solid #58E1C4; /* Themed border */
  color: #58E1C4; /* Themed icon color */
  font-size: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #58E1C4; /* Themed hover effect */
  z-index: 0;
  transition: top 0.4s ease;
  border-radius: 50%;
}

.social-icons a:hover::before {
  top: 0; /* Smooth slide-in effect */
}

.social-icons a:hover {
  color: #0A192F; /* Inverted icon color on hover */
  background-color: #58E1C4; /* Themed hover background */
  transform: translateY(-5px); /* Slight lift effect */
  box-shadow: 0 8px 20px rgba(88, 225, 196, 0.4); /* Glow effect */
}

.social-icons a i {
  position: relative;
  z-index: 1; /* Ensures icon stays above the hover effect */
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .social-icons a {
    width: 40px;
    height: 40px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.9rem; /* Adjust for smaller screens */
  }

  .social-media h3 {
    font-size: 1.6rem; /* Adjust title size for small devices */
  }
}


/* Form Group and Button Styling */
.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #64FFDA;
  border-radius: 12px;
  background-color: #112240;
  color: white;
}

button#submitBtn {
  width: 100%;
  padding: 15px;
  background-color: #64FFDA;
  color: #0A192F;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

button#submitBtn:hover {
  background-color: #0A192F;
  color: #64FFDA;
}

/* Responsive Styles */

/* Medium Screens (max-width: 1024px) */
@media (max-width: 1024px) {
  .contact-container {
    padding: 30px;
  }

  .contact-container h2 {
    font-size: 28px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }

  button#submitBtn {
    font-size: 16px;
  }
}

/* Small Screens (max-width: 768px) */
@media (max-width: 768px) {
  .contact-container {
    padding: 20px;
    max-width: 500px;
  }

  .contact-container h2 {
    font-size: 24px;
  }

  .social-media {
    display: block;
  }

  .social-media h3 {
    font-size: 1.5rem;
  }

  .social-icons {
    flex-direction: row;
    gap: 15px;
  }

  .social-icons a {
    font-size: 1.8rem;
  }
}

/* Extra Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .page4{
    flex-direction: column;
    width: 100vw;
    height: 90vh;
  }

  .contact-container {
    padding: 20px;
    max-width: 400px;
  }

  .contact-container h2 {
    font-size: 30px;
  }
 
  .form-group input,
  .form-group textarea {
    font-size: 17px;
  }

  button#submitBtn {
    font-size: 14px;
  }

    .social-media h3 {
      font-size: 1.65rem;
      margin-bottom: 10px;
      margin-top: 10%;
      text-align: center;
    }

    .social-icons a {
      font-size: 2.5rem;
    }

    .social-icons {
      gap: 30px;
      align-items: center;
    }
}
