
@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: rgb(51, 153, 255);
  --secondary-color: rgb(102, 179, 255);
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #212121;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: rgb(51, 153, 255);
  --secondary-color: rgb(102, 179, 255);
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Navbar */
.nav-menu > li > a:hover{color: var(--primary-color);}
#conn-btn:hover{
        background-color: var(--primary-color);
        }
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 40px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 150px;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 4px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}






/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 3rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}

.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  grid-gap: 0.9rem;
}

.card .project-bio p {
  font-size: 0.83rem;
}

.card .project-bio h3 {
  font-size: 0.9rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: 0.5s ease-in-out;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  top: 160px;
  left: 10px;
}


 /*Skills section */

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}
#skills-con{
  width:90%;height:auto;display:flex;flex-wrap:wrap;
  padding:20px;margin:5%;
  
}
.skill-divs{
  display:flex;flex-wrap: wrap;
  width:350px;height:350px;
  color:var(--text-color-two);
  margin:3%;padding:2%;background-color:var(--bg-secondary-two);border-radius: 30px;
  
}
.skill-divs svg{width:80px;height:80px; margin:20px;}
.skill-divs svg:hover{animation: wiggle 0.5s infinite alternate;}
.skill-divs img{width:80px;height:80px; margin:20px 20px 20px 50px;}
.skill-divs img:hover{animation: pulse 1.2s infinite;}



/* Education Section */

#edu-con {
  margin: 5%;
  width: 90%;
  height: auto;
  position: relative; 
}

#edu-con::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 0; 
  background: var(--text-color);
  top: 20px; 
  left: 50%;
  margin-left: -3px;
  z-index: -1;
  animation: moveline 2s linear forwards;
}

@keyframes moveline {
  0% {
    height: 0;
  }
  100% {
    height: calc(100% - 40px); 
  }
}

.timeline {
  position: relative;
  max-width: 1220px;
  margin: auto;
}

#edu-con img {
  width: 50px;
  height: 50px;
  position: absolute;
  border-radius: 50%;
  right: -20px;
  top: 32px;
  z-index: 10;
}

.right img {
  left: -20px;
  right: auto;
}

.edu-item-con {
  padding: 10px 50px;
  position: relative;
  color: var(--text-color-two);
  width: 50%;
  opacity: 0; 
}


.edu-item-con.show {
  animation: movedown 1s linear forwards;
}


#edu-con .timeline:nth-child(1) .edu-item-con.show { animation-delay: 0s; }
#edu-con .timeline:nth-child(2) .edu-item-con.show { animation-delay: 0.5s; }
#edu-con .timeline:nth-child(3) .edu-item-con.show { animation-delay: 1s; }
#edu-con .timeline:nth-child(4) .edu-item-con.show { animation-delay: 1.5s; }

@keyframes movedown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.edu-text-box {
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
  font-size: 20px;
  background-color: var(--bg-secondary-two);
}

.left-con-arr {
  height: 0;
  width: 0;
  position: absolute;
  top: 39px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--bg-secondary-two);
  right: 36px;
}

.right-con-arr {
  height: 0;
  width: 0;
  position: absolute;
  top: 39px;
  z-index: 1;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 15px solid var(--bg-secondary-two);
  left: 36px;
}


@media screen and (max-width: 768px) {
  #edu-con::after {
    left: 20px;       
    margin-left: 0;
  }

  .edu-item-con {
    width: 100%;
    padding-left: 70px; 
    padding-right: 25px;
  }


  .left, .right {
    left: 0 !important;
  }

 
  #edu-con img {
    left: 0;
    right: auto;
  }

  
  .left-con-arr,
  .right-con-arr {
    left: 60px;
    right: auto;
    border-left: 15px solid var(--bg-secondary);
    border-right: none;
  }
}



/* Certificate Section */

#certificates {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 3rem;
  background: none; 
}

#certificates .content-text {
  text-align: center;
  margin-bottom: 2rem;
}

#certificates h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#certificates p {
  font-size: 1rem;
  color: #555;
}


.certificate {
  display: grid;
  grid-template-columns: 1.5fr 2fr; 
  gap: 1rem;
}

.main-certificate {
  height: 500px;
}

.horizontal-certificates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.horizontal-certificate {
  height: 220px;
}

/* Card Styles */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .certificate-info {
  opacity: 1;
}

/* Lightbox View */
.modal {
  display: none; 
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8); 
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}


@media (max-width: 1024px) {
  .certificate {
    grid-template-columns: 1fr;
  }
  .horizontal-certificates {
    grid-template-columns: 1fr 1fr;
  }
  .main-certificate {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .horizontal-certificates {
    grid-template-columns: 1fr;
  }
  .main-certificate {
    height: 400px;
  }
}


/* Internship Section */

#internship {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.division {
  width: 100%;
  height: 4px;
  background-color: var(--card-background);
  margin: 2rem 0;
}

.content-text {
  text-align: center;
  margin-bottom: 2rem;
}

.content-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.content-text p {
  font-size: 1rem;
  color: var(--text-color);
}



.internship-card {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.certificate-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.details-card {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  color: var(--text-color);
  background-color: var(--bg-secondary-two);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.details-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color:var(--text-color-two);
}

.details-card h4 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color:var(--text-color-two);
}

.details-card p, .details-card li {
  font-size: 0.95rem;
  line-height: 1.4;
  color:var(--text-color-two);
}

.details-card ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.details-card a {
  color: #3498db;
  text-decoration: none;
}

.details-card a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .internship-card {
    flex-direction: column;
    align-items: center;
  }

  .certificate-card, .details-card {
    width: 100%;
  }

  .certificate-card {
    max-width: 100%;
    height: auto;
  }

  .details-card {
    max-width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .details-card h2 {
    font-size: 1.3rem;
  }

  .details-card h4 {
    font-size: 1.1rem;
  }

  .details-card p, .details-card li {
    font-size: 0.9rem;
  }
}





/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  color: #ffffff;
  min-height: 160px;
  text-align: left;
  margin-left: 50px;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;

}

#footer a:hover {
  opacity:0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}
.contact-sec{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
  height:auto;
  width:90%;
  margin-left:3%;
  padding:0px;
  
}
.items-inside-contact-sec{
display:block; margin:0px;width:450px;height:50%;}
#another{display:flex;flex-wrap: wrap;}
.input-mail{
 width:280px;height:40px;border-radius:20px;padding:13px;margin:0px 15px 15px 0px;font-family: "Raleway", sans-serif;
}
#text-area{
  width:277px;height:100px;border-radius:20px;padding:13px;margin:0px 15px 15px 0px;resize:none;font-family: "Raleway", sans-serif;
}
#sub-btn{
  width:100px;height:40px;border-radius: 10px;margin: 15px 15px 15px 10px;background-color: var(--primary-color);font-family: "Raleway", sans-serif;
  
}
#sub-btn:hover{
  color:black;
  background-color:var(--secondary-color);
}
/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}
