@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Universal Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: 'Roboto', sans-serif;
}

/* Root Variables */
:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

/* Global Styles */
html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.header.sticky {
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.logo {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: default;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

/* Menu Icon */
#menu-icon {
  font-size: 2.5rem;
  color: var(--text-color);
  cursor: pointer;
  display: none; /* Hidden on desktop by default */
}

/* Desktop View */
@media(min-width: 769px) {
  #menu-icon {
    display: none;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  #menu-icon {
    display: block; /* Show icon on mobile */
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--bg-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    transition: 0.3s ease;
    display: none;
    z-index: 1000;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    display: block;
    padding: 10px;
    width: 100%;
    text-align: left;
  }
}

/* General Text Colors */
body {
  color: #1a1a1a; /* Softer black */
}
/* background animation layer */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background:#fff; /* or transparent */
    top: 0;
    left: 0;
    z-index: -1; /* behind everything */
}
/* Home Section Styling */
.home {
  position: relative;
  z-index: 1; /* keep content above particles */
  color:#1f242d; /* main accent color */
}
/* Headings */
.home h1,
.home h2,
.home h3 {
  color: #1a1a1a;
}
/* Paragraph Styling */
.home p {
  color: #444; /* Professional gray */
  line-height: 1.6;
  max-width: 600px;
}


/* Typing text color and glow */
.home h1 span,
.home h2 span,
.multiple-text {
  color: #00e5ff;
  font-weight: bold;
  text-shadow:0 0 6px rgba (0,229,255,0.6); 
    
}



/* Home Section */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  gap: 4rem;
  padding-top: 10rem;
}

.home-img {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img img {
  width: 35vw;
  height: auto;
  border-radius: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation:floatImage 4s ease-in-out infinite;

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

  }
  50% {
    transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY();
  }
}

.home-img:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 1.5rem var(--main-color);
}

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

.home-content h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content p {
  font-size: 1.6rem;
  max-width: 900px;
  line-height: 1.8;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --main-color: #00f7ff; /* Matches your theme cyan */
}

.first-name {
    color: #ff6600; /* Orange for Nikhil */
}

.last-name {
    color: var(--main-color); /* Cyan for Katiyar */
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
}



/* Social Media */
.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background:var(--bg-color);
  border: 0.2rem solid #00e5ff;
  border-radius: 50%;
  font-size: 2rem;
  color: #00e5ff;
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.5s ease;
}

.social-media a:hover {
  background: #ffee00;
  color:#fff;
  box-shadow: 0 0 1rem var(--main-color);
}

/* Button */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: linear-gradient(90deg, #00e5ff,#00bcd4);
  color:#1a1a1a;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  box-shadow: none;
}

/* About Section */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem;
  flex-wrap: wrap;
}

.about-img img {
  width: 280px;
  border-radius: 1rem;
  border: 3px solid transparent;
  transition: border 0.4s ease, box-shadow 0.4s ease;
}

.about-img img:hover {
  border: 3px solid var(--main-color);
  box-shadow: 0 0 1.5rem var(--main-color);
}

.about-content {
  flex: 1;
  max-width: 500px;
}

.about-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--main-color);
}

.about-content h2 {
  font-size: 1.5em;
  color: #111417b1;
  margin-bottom: 20px;
}

.about-content p {
  line-height: 1.6;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.personal-info {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.personal-info li {
  padding: 8px 0;
  font-size: 1.5rem;
  border-bottom: 1px solid #ddd;
  color: #0d0707;
  transition: all 0.3s ease;
  cursor: pointer;
}

.personal-info li:hover {
  color: var(--main-color);
  text-shadow: 0 0 5px var(--main-color);
  font-weight: 500;
}

/* Services */
.services {
  background: var(--bg-color);
  padding: 10rem 9% 2rem;
}

.services h2 {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 5rem;
  color: var(--text-color);
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.services-box {
  flex: 1 1 30rem;
  background: var(--second-bg-color);
  padding: 3rem 2rem 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: 0.5s ease;
}

.services-box:hover {
  box-shadow:0 0 1.5rem var(--main-color);
  transform: scale(1.05);
}

.services-box i {
  font-size: 7rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.services-box h3 {
  font-size: 2.6rem;
  margin: 1rem 0;
  color: var(--text-color);
}

.services-box p {
  font-size: 1.6rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Education */
.education {
  background: var(--second-bg-color);
  padding: 10rem 9% 2rem;
  color: var(--text-color);
}

.education .heading {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 5rem;
}

.education .heading i {
  color: var(--main-color);
  font-size: 4.5rem;
  vertical-align: middle;
  margin-right: 1rem;
}

.education-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.education-box {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 30rem;
  box-shadow: 0 0 1rem rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 1.5rem var(--main-color);
}

.education-box h3 {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.education-box h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.education-box p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
/* Skills Section */
.skills {
  background:var(--second-bg-color); /* dark background */
  padding: 60px 0;
}

.skills-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.skills-container h2 {
  font-size: 4.5rem;
  font-weight: bold;
  color: #fff; /* heading color */
  text-align: center;
  margin-bottom: 40px;
}

.skills-container h2 i {
  margin-right: 8px;
  font-size: 4.5rem;
  vertical-align: middle;
  color: var(--main-color);
}

/* Grid Layout for Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Skill Card Style */
.skill-card {
  background:var(--bg-color);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
}

.skill-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 1rem;
  color:#fff;
  font-weight: 500;
}

/* Hover Effect */
.skill-card:hover {
  transform: scale(1.03);
  box-shadow:0 0 1.5rem var(--main-color); /* main color border */
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .skills-container h2 {
    font-size: 1.5rem;
  }
  
  .skill-card img {
    width: 50px;
    height: 50px;
  }
}

/* Contact Section */
.contact h2 {
  margin-bottom: 3rem;
  font-size: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto 3rem;
  text-align: center;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--second-bg-color);
  border-radius: 0.8rem;
  margin: 0.7rem 0;
  border: none;
}

.contact form .input-box input {
  width: 49%;
}

.contact form textarea {
  resize: none;
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
  background: var(--main-color);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  transition: 0.3s;
}

.contact form .btn:hover {
  background: #0056b3;
}




/*footercontactinfo*/

.footer {
  background: #03042e;
  padding: 40px 20px;
  color: white;
  font-family: 'Roboto', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-about,
.footer-contact {
  flex: 1 1 300px;
}

.footer h2,
.footer h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.footer p {
  margin-bottom: 10px;
  color: #ddd;
  font-size: 14px;
}

.footer-contact i {
  color: orange;
  margin-right: 8px;
  font-size: 16px;
}


.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--second-bg-color);
}

.footer-text p {
  font-size: 1.6rem;

}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.3s;
}

.footer-iconTop a:hover{


  background: #0056b3;
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}
