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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  color: #f4f4f9;
  line-height: 1.6;
  overflow-x: hidden;

  min-height: 100vh;
}

.header-container {
  display: flex;
  padding: 20px;
}

.container {
  padding: 0 20px;
  width: 100%;
}

header {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #9b59b6;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #9b59b6;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #f4f4f9;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #9b59b6;
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: #9b59b6;
  transform: translateY(-2px);
}

.hero {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23444" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23555" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  z-index: 2;
  position: relative;
  max-width: 90vw;
}

.pfp {
  border-radius: 50%;
  object-fit: cover;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #a8a8c1;
  animation: fadeInUp 1s ease;
}

.hero .subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #9b59b6;
  animation: fadeInUp 1s ease 0.2s both;
  transition: color 0.5s ease;
}

.hero .description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #a8a8c1;
  animation: fadeInUp 1s ease 0.4s both;
}

.contact-info {
  animation: fadeInUp 1s ease 0.6s both;
}

.contact-info p {
  margin: 0;
  color: #9b59b6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 20px;
}

.social-links a {
  color: #9b59b6;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid #9b59b6;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #9b59b6;
  transition: left 0.3s ease;
  z-index: -1;
}

.social-links a:hover::before {
  left: 0;
}

.social-links a:hover {
  color: #0a0a0a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
}

section {
  padding: 5rem 0;
  position: relative;
  width: 100vw;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 3rem;
  color: #9b59b6;
  position: relative;
}

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

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

.skill-category {
  background: rgba(30, 30, 30, 0.8);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9b59b6, #c47ac0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.skill-category:hover::before {
  transform: scaleX(1);
}

.skill-category:hover {
  transform: translateY(-10px);
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.skill-category h3 {
  color: #9b59b6;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: #333;
  color: #f4f4f9;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: #9b59b6;
  color: #0a0a0a;
  transform: scale(1.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(25, 25, 25, 0.9);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid #333;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 107, 157, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.project-card:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 107, 157, 0.2);
  border-color: #9b59b6;
}

.project-card h3 {
  color: #9b59b6;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 2;
}

.project-card p {
  color: #c7c7db;
  position: relative;
  z-index: 2;
}
.experience-item {
  background: rgba(25, 25, 25, 0.9);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid #333;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.experience-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 107, 157, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.experience-item:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.experience-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 107, 157, 0.2);
  border-color: #9b59b6;
}

.experience-item h3 {
  color: #9b59b6;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 2;
}

.experience-item p {
  color: #c7c7db;
  position: relative;
  z-index: 2;
}

.resume-btn {
  animation: fadeInUp 1s ease 0.4s both;
}
.resume-btn {
  color: #9b59b6;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid #9b59b6;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: none;
  display: inline-block;
}

.resume-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #9b59b6;
  transition: left 0.3s ease;
  z-index: -1;
}

.resume-btn:hover::before {
  left: 0;
}

.resume-btn:hover {
  color: #0a0a0a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
}

.subtitle-container {
  position: relative;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s both;
}

.animated-title {
  position: absolute !important;
  opacity: 0;
  color: #9b59b6;
  padding-bottom: 95px;
  font-size: 2em;
  animation: alternateText 10s infinite ease-in-out;
}

.animated-title:nth-child(2) {
  animation-delay: 5s;
}

footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #333;
}

footer p {
  color: #7a7a94;
}

@keyframes alternateText {
  0%,
  42% {
    opacity: 1;
    transform: translateY(30px);
  }
  58%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

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

@media (max-width: 1200px) and (min-width: 769px) {
  .container {
    max-width: 95vw;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero .subtitle {
    font-size: 1.4rem;
  }

  .hero .description {
    font-size: 1rem;
    max-width: 500px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .social-links {
    gap: 1.5rem;
  }

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

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .header-container {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
  }
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero .subtitle {
    font-size: 1.3rem;
  }

  .hero .description {
    font-size: 1rem;
    max-width: 400px;
  }

  .nav-links {
    display: none;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

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

  .pfp {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .header-container {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
  }
  .container {
    padding: 0 10px;
  }

  .hero {
    padding: 0 10px;
  }

  .hero-content {
    max-width: 95vw;
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero .description {
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .logo {
    font-size: 1.3rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .experience-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .social-links a,
  .resume-btn {
    width: 200px;
    text-align: center;
  }

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

  section {
    padding: 3rem 0;
  }

  .pfp {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }

  .contact-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 320px) {
  .header-container {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
  }
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero .description {
    font-size: 0.8rem;
    max-width: 280px;
  }

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

  .skill-category,
  .project-card,
  .experience-item {
    padding: 1rem;
  }

  .pfp {
    width: 80px;
    height: 80px;
  }

  .social-links a,
  .resume-btn {
    width: 160px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .header-container {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
  }
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .hero .description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .pfp {
    width: 80px;
    height: 80px;
  }

  .social-links {
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
  }

  .social-links a,
  .resume-btn {
    width: auto;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
}
