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

body {
  font-family: "Arial", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ff0000;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 5rem 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Animated Background */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ff0000;
  border-radius: 50%;
  animation: float 6s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Home Section */
#home {
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(255, 0, 0, 0.1) 0%,
    transparent 70%
  );
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp 1s ease forwards;
  background: linear-gradient(45deg, #fff, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 1s ease 0.3s forwards;
  color: #ccc;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: slideUp 1s ease 0.6s forwards;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideUp 1s ease 0.9s forwards;
  position: relative;
  overflow: hidden;
}

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

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

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ff0000;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff0000, transparent);
}

/* About Section */
#about {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.05) 0%,
    transparent 100%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  text-align: center;
}

.profile-pic {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 5px solid #8c8686;
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(203, 106, 21, 0.5);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
}

.timeline {
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: #fff;
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
  position: relative;
}

/* Center vertical red line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: red;
  transform: translateX(-50%);
  z-index: 0;
}

/* Background lines */
.timeline .container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 0, 0, 0.1);
  z-index: 0;
}

/* Container row */
.timeline .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 40px 0;
  gap: 20px;
  z-index: 1;
}

/* Dot (visible only on small screen) */
.timeline .container::before {
  content: '';
  width: 16px;
  height: 16px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Hide red dot on large screens */
@media screen and (min-width: 769px) {
  .timeline .container::before {
    display: none;
  }
}

/* Left + Right container */
.timeline .left,
.timeline .right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.timeline .right {
  justify-content: flex-start;
}

/* Card content */
.timeline .content {
  background-color: #111;
  padding: 20px 25px;
  border: 2px solid red;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
  max-width: 400px;
  width: 100%;
  transition: 0.3s ease-in-out;
  position: relative;
  z-index: 2;
}

.timeline .content:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px red;
}

/* Responsive stack */
@media screen and (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline .container::after {
    display: none;
  }

  .timeline .left,
  .timeline .right {
    justify-content: flex-start;
    width: 100%;
  }

  .timeline .content {
    margin-left: 40px;
    max-width: 100%;
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 0, 0, 0.1),
    transparent
  );
  transition: left 0.5s;
}

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

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
  border-color: #ffa8a8;
}

.project-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

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

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

.tech-tag {
  /* background: rgba(225, 222, 222, 0.2); */
  color: #cfa377;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Skills Section */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  
}
@media screen and (min-width: 520px) {
  .skills-container {
    display: column;
  }
}
.skill-category {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 250, 250, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: #4e4c4c;
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
}

.skill-icon {
  font-size: 3rem;
  color: #ff0000;
  margin-bottom: 1rem;
}

.skill-title {
  font-size: 1.3rem;
  color: #f5f3f3;
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
  color: #ccc;
}

.skill-list li {
  margin-bottom: 0.5rem;
  padding: 0.3rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.skill-list li:hover {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
}

/* General center alignment */
div[style*="text-align: center;"] {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  
}

/* Styling each box */
.box {
  
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Typography */
.box h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.box span {
  display: block;
  font-weight: 600;
  font-size: 1.3rem;
  color: #ff0000;
  margin-bottom: 0.5rem;
}

.box p {
  font-size: 0.9rem;
  color: #666;
}



/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(246, 242, 242, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: #ff0000;
  transform: translateX(10px);
}

.contact-icon {
  font-size: 1.5rem;
  color: #ff0000;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile{
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}
.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #f6f4f4;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.form-control::placeholder {
  color: #666;
}

.submit-btn {
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  section {
    padding: 3rem 1rem;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* download resume */

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff0000, #7a7a7b);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(244, 245, 245, 0.3);
}
