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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: linear-gradient(135deg, rgba(2, 2, 131, 0.95) 0%, rgba(0, 0, 100, 0.95) 50%, rgba(0, 0, 50, 0.95) 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
  color: #e8e8e8;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
  cursor: auto;
  min-height: 100vh;
}
h1, h2, h3, h4, p, li {
  margin: 10px 30px;
  transition: all 0.3s ease-in-out;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 40px 30px 20px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

h3 {
  font-size: 1.3rem;
  font-weight: 400;
}

hr {
  width: 95%;
  border: none;
  border-top: 2px solid #e8e8e8;
  margin: 20px auto;
  opacity: 0.6;
}
#nav {
  margin-top: 0;
  height: 60px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 80, 0.98) 0%, rgba(0, 0, 150, 0.98) 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

.index {
  height: 45px;
  width: 100px;
  color: inherit;
  border: 2px solid transparent;
  background-color: transparent;
  font: inherit;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 8px;
  margin: 0 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.index:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #e8e8e8;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.index:active {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #e8e8e8;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}
header {
  background: linear-gradient(135deg, rgba(0, 0, 100, 0.95) 0%, rgba(0, 0, 180, 0.95) 100%);
  padding: 80px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#MyPortfolio {
  position: absolute;
  top: 12px;
  left: 30px;
  font-size: 28px;
  font-weight: 700;
  z-index: 101;
  background: linear-gradient(135deg, #e8e8e8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#portfolio {
  height: 350px;
  width: 350px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  animation: floatImage 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

#img1 {
  flex-shrink: 0;
}

#content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex: 1;
}

#info {
  flex: 1;
}

#info h1 {
  font-size: 3.5rem;
  margin: 0;
  line-height: 1.2;
  animation: slideInDown 0.8s ease-out;
}

#info h3 {
  font-size: 1.4rem;
  color: #b0b0ff;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

#name {
  margin: 20px 0;
  background: linear-gradient(135deg, #ffffff, #b0b0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#nav-check{
  display: none;
}
#skills {
  padding: 80px 20px;
  background: rgba(0, 0, 50, 0.5);
  backdrop-filter: blur(10px);
  scroll-margin-top: 60px;
}

#skills h1 {
  margin-bottom: 40px;
}

#skills1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

#sk {
  height: 140px;
  width: 140px;
  object-fit: contain;
  border-radius: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

#sk:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}
#project {
  padding: 80px 20px;
  scroll-margin-top: 60px;
}

#projects {
  margin: 30px auto;
  max-width: 1000px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#projects:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

#projects div:first-child {
  flex: 1;
}

#projects h2 {
  margin-top: 0;
  color: #ffffff;
}

#projects h4 {
  color: #b0b0ff;
  margin: 15px 30px;
}

#projects ul {
  margin: 20px 60px;
  line-height: 1.8;
}

#projects li {
  margin: 10px 0;
  color: #d0d0d0;
}

details {
  margin: 20px auto;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #b0b0ff;
  transition: all 0.3s ease;
}

details:hover {
  background: rgba(255, 255, 255, 0.1);
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #b0b0ff;
  user-select: none;
  transition: all 0.3s ease;
}

summary:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(176, 176, 255, 0.5);
}

details[open] summary {
  margin-bottom: 15px;
}

details p {
  color: #d0d0d0;
  line-height: 1.6;
  margin: 15px 30px;
}
#education {
  padding: 80px 20px;
  background: rgba(0, 0, 50, 0.5);
  backdrop-filter: blur(10px);
  scroll-margin-top: 60px;
}

#edu {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
}
#cou{
  background-image:url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQSfXL1nGGmd4WbiHrlDKP89buq3PUOdBu_bQ&s);
  background-size: 100% 100%;
  height:500px;
  width: 500px;
  align-content: center;
  text-align: center;
  border:3px solid white;
  border-radius: 10px;
  margin: 10px;
  font-weight: 500;
  font-size: 25px;
  flex:1;
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes  shimmer {
  0%{
    background-position: 200% 0;
  }
  100%{
    background-position: -200% 0;
  }
}
#cou p{
  display: none;
  
  /* font-family: "Big Shoulders", sans-serif; */
}
#sk{
  height: 150px;
  width: 150px;
  margin: 20px;
  box-shadow: none;
  border-radius: 30px ;
  display: flex;
  justify-content: space-around;

}
.image-container img{
  width:100%;
  height:100%;
  object-fit: cover;
  transition:all 0.5s ease;
}
.image-overlay{
  
}
 
#sk:hover{
  transition: transform 0.1s ease-in-out;
  transform:scale(1.1);
  box-shadow:1px 3px 5px #e8e8e8,10px 10px 10px black;
  animation: transition,box-shadow 0ms ease-in-out 0.ms;
}
#title{
  font-size: 30px;
  font-weight: 500;
  margin: 10px;
  color: linear-gradient(65deg,rgb(0, 0, 53), blue,black);
}
#cou:hover{
transition: box-shadow 0.2s ease-in 0s;
box-shadow: 2px 2px 10px #e8e8e8;
 display:unset;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: inherit;
}

#cou:hover p{
height: 18rem;
width: 20rem;
align-content: center;
border-radius: 10px;
 font-weight: 350;
 font-size: 30px;
  justify-content:center;
  display: unset;
  background-color: #e8e8e80c;
  backdrop-filter: blur(5px);
box-shadow: 2px 2px 5px #e8e8e8;
}


#contact {
  padding: 80px 20px;
  scroll-margin-top: 60px;
}

#res {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#res h4 {
  font-size: 1.2rem;
  color: #d0d0d0;
  margin: 20px 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#res h1 {
  margin-top: 50px;
}

a {
  color: #b0b0ff;
  transition: all 0.3s ease;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(176, 176, 255, 0.5);
}

#socl {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  padding: 40px 20px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#socl div {
  text-align: center;
  transition: all 0.3s ease;
}

#socl a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #b0b0ff;
  font-weight: 500;
}

#socl i {
  font-size: 50px;
  color: #b0b0ff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#socl div:hover i {
  font-size: 60px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(176, 176, 255, 0.8);
  transform: scale(1.2) rotateY(10deg);
}

#socl div:hover a {
  color: #ffffff;
}


a{
 font-size: large;
 font-weight: 300;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2rem;
  }

  #MyPortfolio {
    font-size: 24px;
  }

  header {
    flex-direction: column;
    padding: 60px 20px;
    min-height: auto;
    gap: 30px;
  }

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

  #portfolio {
    height: 280px;
    width: 280px;
  }

  #info h1 {
    font-size: 2.5rem;
  }

  #skills1 {
    gap: 20px;
  }

  #sk {
    height: 120px;
    width: 120px;
  }

  #edu {
    gap: 20px;
  }

  .card {
    width: 280px;
    height: 360px;
  }

  #projects {
    padding: 20px;
  }

  #nav {
    height: 60px;
  }
}

@media (max-width: 768px) {
  h1, h2, h3, h4, p, li {
    margin: 8px 20px;
  }

  h1 {
    font-size: 1.7rem;
    margin: 30px 20px 15px;
  }

  #MyPortfolio {
    font-size: 20px;
    left: 20px;
    top: 10px;
  }

  #nav {
    justify-content: space-between;
    padding: 0 15px;
  }

  .menu-toggle {
    display: flex;
  }

  #nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 80, 0.98), rgba(0, 0, 150, 0.98));
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  }

  #nav-links.active {
    max-height: 300px;
  }

  #nav-links a {
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  #nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  header {
    padding: 60px 20px 40px;
  }

  #portfolio {
    height: 240px;
    width: 240px;
  }

  #info h1 {
    font-size: 2rem;
  }

  #info h3 {
    font-size: 1rem;
  }

  #skills1 {
    gap: 15px;
  }

  #sk {
    height: 100px;
    width: 100px;
  }

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

  .card {
    width: 100%;
    max-width: 300px;
    height: 320px;
  }

  #projects {
    margin: 20px 0;
    padding: 20px;
  }

  #projects div:first-child {
    width: 100%;
  }

  #socl {
    gap: 20px;
    padding: 30px 15px;
    margin: 30px 0;
  }

  #socl i {
    font-size: 40px;
  }

  #socl div:hover i {
    font-size: 50px;
  }

  #res {
    padding: 30px 20px;
    margin: 20px 0;
  }

  #res h4 {
    font-size: 1rem;
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  h1, h2, h3, h4, p, li {
    margin: 6px 15px;
  }

  h1 {
    font-size: 1.4rem;
    margin: 25px 15px 12px;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1rem;
  }

  #MyPortfolio {
    font-size: 18px;
    left: 15px;
  }

  #nav {
    height: 55px;
  }

  header {
    padding: 50px 15px 30px;
    min-height: auto;
  }

  #portfolio {
    height: 200px;
    width: 200px;
  }

  #info h1 {
    font-size: 1.6rem;
  }

  #info h3 {
    font-size: 0.9rem;
  }

  #content {
    gap: 15px;
  }

  #skills1 {
    gap: 10px;
  }

  #sk {
    height: 90px;
    width: 90px;
    margin: 10px;
  }

  .card {
    width: 100%;
    max-width: 280px;
    height: 300px;
  }

  .card__title {
    font-size: 18px;
  }

  .card__description {
    font-size: 12px;
  }

  #projects {
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
  }

  #projects h2 {
    margin: 0 0 10px 0;
  }

  #projects ul {
    margin: 10px 20px;
  }

  #projects li {
    font-size: 0.9rem;
    margin: 8px 0;
  }

  details {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
  }

  summary {
    font-size: 0.95rem;
  }

  details p {
    font-size: 0.9rem;
    margin: 10px 0;
  }

  #socl {
    gap: 15px;
    padding: 20px 10px;
    margin: 20px 0;
  }

  #socl i {
    font-size: 35px;
  }

  #socl div:hover i {
    font-size: 42px;
  }

  #res {
    padding: 20px 15px;
    margin: 15px 0;
  }

  #res h4 {
    font-size: 0.95rem;
    margin: 12px 0;
  }

  #res h1 {
    font-size: 1.4rem;
  }
}
.card {
  position: relative;
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.card svg {
  width: 80px;
  height: 80px;
  fill: #333;
  background-color: white;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card svg img {
  width: 100%;
  height: 100%;
  object-fit:scale-down;
}

.card:hover {
  transform: scale(1.08) translateY(-10px);
  box-shadow: 0 15px 50px rgba(176, 176, 255, 0.4);
  border-color: rgba(176, 176, 255, 0.8);
}

.card__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(100, 100, 200, 0.95) 0%, rgba(80, 80, 180, 0.95) 100%);
  transform: rotateX(-90deg);
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.card:hover .card__content {
  transform: rotateX(0deg);
}

.card__title {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: #ffffff;
  font-weight: 700;
}

.card:hover svg {
  scale: 0;
  opacity: 0;
}

.card__description {
  margin: 0;
  font-size: 14px;
  color: #e8e8e8;
  line-height: 1.6;
}




