*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
body{
    background: #080808;
    color: #fff;
}
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/bb.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}
nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo{
    width: 250px;
    height: auto;
}
nav ul li{
    display: inline-block;
    list-style: none;
    margin: 5px 20px;

}
nav ul li a{
    color: #fff;
    text-decoration:none;
    font-size: 18px;
    position: relative;
}
nav ul {
    display: flex;          /* line up tabs neatly */
    gap: 20px;              /* spacing between tabs */
    margin-right: auto;     /* pushes tabs left */
    padding-left: 50px;     /* optional: nudge group left */
}
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s    ;
}
nav ul li a:hover::after{
    width: 100%;
}
.header-text {
    padding-left: 40px; /* moves text away from left edge */
    margin-top: 5%; 
}
.header-text h1 {
    font-size: 60px;
}
.header-text h1 span{
    color: #ff004f;
}
#about {
    margin-top: 20px;       /* space below your name */
    padding-left: 40px;     /* keeps text away from edge */
    max-width: 45%;         /* restricts section to left half */
    color: #fff;
    margin-top: 0px;
}

#about h2 {
    
    font-size: 32px;
    color: #ff004f;         /* accent color */
    margin-bottom: 10px;
}

#about p {
    font-size: 18px;
    line-height: 1.6;
}
/*----------Skills & Interests--------*/
#skills{
   padding: 60px 40px;
    background: #111;
    color: #fff;
}
#skills .sub-title {
   padding: 0 35px;
    font-size: 36px;
    color: #add8e6;
    margin-bottom: 30px;
}
#skills {
    padding: 60px 40px;
    background: #111;
    color: #fff;
}

#skills .sub-title {
    text-align: center;
    font-size: 36px;
    color: #add8e6;
    margin-bottom: 30px;
}

.work-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.work {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 8px;
    width: 30%;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.work img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.work:hover {
    background: rgba(255, 0, 0, 0.6); /* red shading */
    transform: translateY(-5px);
}

.work h3 {
    color: #add8e6;
    margin-bottom: 10px;
}

/* Achievements Section */
#achievements {
  padding: 60px 40px;
  background: #111;
  color: #fff;
}

#achievements .sub-title {
  text-align: center;
  font-size: 36px;
  color: #ff004f;
  margin-bottom: 30px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}

/* Flip Card Base */
.flip-card {
  background-color: transparent;
  width: 220px;
  height: 220px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.flip-card-front {
  background: #222;
}

.flip-card-front img {
  width: 90%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.flip-card:hover .flip-card-front img {
  transform: scale(1.05); /* zoom effect */
}

.flip-card-back {
  background: #fff;
  color: #333;
  transform: rotateY(180deg);
  flex-direction: column;
  text-align: center;
}

.flip-card-back h2 {
  margin: 0;
  color: #4facfe;
  font-size: 1.2em;
}

.flip-card-back p {
  margin-top: 10px;
  font-size: 0.9em;
}
.flip-card-front {
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;   
  border-radius: 12px;
}
#gallery {
  padding: 60px 40px;
  background: #080808;
  color: #fff;
}

#gallery .sub-title {
  text-align: center;
  font-size: 36px;
  color: #add8e6;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  background: #111;
  padding: 10px;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;   /* makes photo adjust neatly */
  border-radius: 8px;
}

.gallery-item p {
  margin-top: 8px;
  font-size: 14px;
  color: #ccc;
}
#feedback {
  padding: 60px 40px;
  background: #111;
  color: #fff;
}

#feedback .sub-title {
  text-align: center;
  font-size: 36px;
  color: #add8e6;
  margin-bottom: 20px;
}

.form-description {
  text-align: center;
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
}

#feedback iframe {
  width: 100%;
  max-width: 700px;
  height: 746px;
  border: none;
  border-radius: 8px;
}
.copyright{
  width: 100%;
  text-align: center;
  padding: 25px 0;
  background: #262626;
  font-weight: 300;
  margin-top: 20px;
}
.mobile-bg {
  display: none; /* hide bb1 on desktop */
}

/*-------css for small screens--------------*/
nav .fas{
  display: none;
}
@media only screen and (max-width: 768px){
  #header {
    background-image: none; /* remove bb.png on phones */
  }

  .mobile-bg {
    display: block;   /* show bb1 on phones */
    float: right;     /* text wraps around it */
    width: 55%;       /* adjust size */
    margin: 0 0 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  }

  .header-text {
    padding: 20px;
    font-size: 16px;
    margin-top: 20px;
  }

  .header-text h1{
    font-size: 30px;
  }
  nav .fas{
  display: block;
  font-size: 25px;
}
nav ul{
  background: #ff004f;
  position: fixed;
  top: 0;
  right: -200px;
  width: 200px;
  height: 100vh;
  padding-top: 50px;
  display: flex;          /* new */
    flex-direction: column; /* new */
    align-items: flex-start;
    z-index: 2;
    transition: right 0.5s;
}
nav ul li{
    display: block;         /* ensures vertical stacking */
    margin: 15px;      /* spacing between items */
  }
 nav ul .fas{
  position: absolute;
  top: 25px;
  left: 25px;
  cursor: pointer;

 }
 #about {
  max-width: 100%;   /* let text take full width */
  padding: 20px;     /* add breathing room */
}

#about p {
  font-size: 16px;   /* slightly smaller for mobile */
  line-height: 1.5;  /* easier to read */
  text-align: justify;
}
 
  
   #about img {
    float: right;            /* photo sits on the right */
    width: 55%;              /* adjust size for phone */
    margin: 0 0 10px 15px;   /* small gap from text */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  }

  .work-list {
    flex-direction: column;   /* stack vertically */
    align-items: center;      /* optional: center them */
  }

  .work {
    width: 90%;               /* make each box take most of the screen width */
    margin-bottom: 20px;      /* spacing between boxes */
  }
  .achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* exactly two columns */
    gap: 15px;                      /* spacing between boxes */
    justify-items: center;          /* center each card */
  }

  .flip-card {
    width: 100%;   /* each card fills its grid cell */
    max-width: 180px; /* optional: control card size on phone */
  }
}


/* Default (desktop) */
@media only screen and (min-width: 769px) {
  #about img {
    display: none;
  }
}