/* global styles of my portfolio */
:root {
  --neon-blue: #5390d9;
  --neon-pink: #56cfe1;
  --neon-purple: #80ffdd;
  --neon-green: #80ffdb;
  --dark-bg: #010101;
  --darker-bg: #0a0a0a;
  --text-color: #eee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* if video not loaded then body will work */
body {
  background-color: var(--dark-bg);
  background-color: rgb(6, 26, 36);
  color: var(--text-color);
  overflow-x: hidden;
}

/* navigatioon */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: fixed;
  width: 100%;
  z-index: 100;
  background-color: rgba(18, 17, 17, 0.8);
  backdrop-filter: blur(20px);

}

/* logo */

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgb(0, 136, 255, 0.3);

}

.nav-links {
  display: flex;
  gap: 2rem;

}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;

}

.nav-links a:hover {
  color: var(--neon-blue);

}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;

}

/* hero section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 0 5%;
  padding-top: 80px;

}

.hero-content {
  max-width: 600px;
  z-index: 2;

}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;

}

.hero h1 span {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientshift 5s ease infinite;
  background-size: 200% 200%;

}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #ccc;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translate(-3px);
  box-shadow: 0 0 25px rgba(0, 136, 255, 0.9);

}

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

}

.cta-button:hover::before {
  left: 100%;

}

/* /profile picture */

.profile-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid transparent;
  box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple), 0 0 20px var(--neon-pink);
  animation: glow 4s ease-in-out infinite alternate, float 6s ease-in-out infinite;
  z-index: 1;

}

.profile-border {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px dashed var(--neon-green);
  animation: spin 20s linear infinite;

}

.profile-border::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 3px dashed var(--neon-blue);
  animation: spin 15s linear infinite reverse;

}

.tech-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: spin 30s linear infinite;

}

.tech-icon {
  position: absolute;
  font-size: 1.5rem;
  color: var(--neon-green);
  filter: drop-shadow(0 0 5px var(--neon-green));
}

/* animations */
@keyframes gradientshift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-purple), 0 0 60px var(--neon-pink);
  }

  100% {
    box-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-purple), 0 0 90px var(--neon-blue);
    ;
  }


}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }

}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }

}

/* about section */

.about {
  padding: 5rem 5%;
  background-color: var(--dark-bg);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));

}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  border-radius: 3px;
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #ccc;
}

.skills {
  flex: 1;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  animation: fillbar 2s ease-out forwards;
}


/* project section */
.projects {
  padding: 5rem 5%;
  position: relative;
 background: rgba(0, 0, 0, 0.6); /* or any valid color */


}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;

}

.project-card {
  background-color: var(--darker-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  position: relative;
  border: 1px solid #333;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(12, 139, 250, 0.15);
  /* Lighter shadow */
  border: 1.5px solid var(--neon-blue);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(10, 145, 160, 0),
      rgba(22, 159, 159, 0.08),
      rgba(10, 225, 129, 0.29),
      rgba(255, 0, 255, 0.08),
      rgba(0, 255, 255, 0));
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
  /* avoids interaction issues */
}

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



.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;

}

.project-info {
  padding: 1.5rem;
}

.project-title {

  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--neon-blue);
}

.project-description {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background-color: rgba(12, 139, 250, 0.2);
  color: var(--neon-blue);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;

}

.project-link {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s ease;

}

.project-link:hover {
  color: var(--neon-pink);
}


/* certificate section......and the maximum class link with project section */
.certificates {
  padding: 5rem 5%;
  background-color: var(--dark-bg);
  position: relative;
}

.certificates .project-card:hover .project-img {
  filter: brightness(1.2);
}


/* contact section */
.contact {
  position: relative;
  padding: 5rem 5%;
  z-index: 1;
  overflow: hidden;
}

.contact-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  overflow: hidden;
}

.contact-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* dark overlay for text readability */
  z-index: 1;
}



.section-title {
  position: relative;
  z-index: 2;
}
.contact-card {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--darker-bg);
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 8px 16px rgba(12, 139, 250, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.contact-card:hover {
  box-shadow: 0 12px 24px rgba(0, 136, 255, 0.15);
  border: 1.5px solid var(--neon-blue);
}


.contact-form{
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

}

.form-label{
  font-weight: 500;
}

.form-input, .form-textarea{

  padding: 0.8rem 1rem;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus{
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);

}

.form-textarea{
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px #5390d9;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, yellow, transparent);
  transition: 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

/* footer section */
footer{
  text-align: center;
  padding: 2rem;
  background-color:var(--dark-bg);
  position: relative;
}
.social-links{
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link{
  color: #ccc;
  font-size: 1.5rem;
  transition: all 0.3s ease;


}
.social-link:hover{
  color: var(--neon-blue);
  transform: translateY(-3px);
}
.copyright{
  color: #666;
  font-size: 0.9rem;
}
.copy-name{
  color: #ccc;
  font-size: 0.9rem;

}

@keyframes fillbar{
  from{
    width:0;
  }
  to{
    width: 100%;
  }
} 
 
/* responsive design */
@media(max-width:992px){
  .hero{
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content{
    margin-bottom: 3rem;

  }
  .about-content{
    flex-direction: column;
  }

}

@media(max-width:768px){
  .nav-links{
    display: none;
  }
  .hero h1{
    font-size: 2.5rem;

  }
  .cta-button{
    padding-bottom: 1rem;
  }
  .profile-border{
    padding-bottom: 2rem;
    margin-bottom: 1rem;
  }
  .profile-container{
    width: 300px;
    height: 300px;
  }
  .profile-pic{
    width: 300px;
    height: 300px;
  }
}

/* scrollbar */
::-webkit-scrollbar{
  width: 10px;
}

::-webkit-scrollbar-thumb{
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb{
  background: var(--neon-purple);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover{
  background: var(--neon-pink);
}

/* paralax effect*/
.parallax-video-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: -1;
  overflow: hidden;
}

.parallax-video {
  width: 100%;
  height: 120vh;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* Thoda dark background */
  z-index: 1;
}
@media (max-width: 768px) {
  .parallax-video {
    height: 100vh;
  }
}
