/* Portfolio Website Stylesheet */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #0a0a0a;
  overflow-x: hidden;
}

/* Animated Background */

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e, #0f3460);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating particles */

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translateY(-100px) rotate(180deg);
    opacity: 1;
  }
}

/* Navigation */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 50px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 15px 50px;
  background: rgba(10, 10, 10, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  align-content: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #00ff88;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #00ff88;
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00ff88;
  transition: width 0.3s ease;
}

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

/* Hero Section */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 50px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.profile-photo-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInScale 1.2s ease 0.3s forwards;
}

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

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.profile-photo-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #00d4ff, #ff0080, #00ff88);
  background-size: 300% 300%;
  animation: gradientRotate 4s ease infinite;
  z-index: 1;
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.profile-photo-container::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.profile-photo-container:hover .profile-photo {
  transform: scale(1.05);
  box-shadow: 0 30px 80px rgba(0, 255, 136, 0.4);
  border-color: rgba(0, 255, 136, 0.3);
}

.hero-text {
  text-align: center;
}

@keyframes textGlow {
  from {
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
  }
  to {
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.5));
  }
}

.hero-text p {
  font-size: 1.5rem;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

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

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.5);
  color: #000;
  text-decoration: none;
}

/* Sections */

section {
  padding: 100px 50px;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 60px;
  text-align: center;
  color: #ffffff;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  border-radius: 2px;
}

/* Skills Grid */

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

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.skill-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #00ff88;
}

.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.skill-card p {
  color: #cccccc;
  line-height: 1.6;
}

/* Projects Grid */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

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

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 212, 255, 0.1);
}

.project-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #00ff88, #00d4ff, #ff0080);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.project-content p {
  color: #cccccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.project-link {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  text-decoration: none;
}

/* Contact Section */

.contact {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 30px;
  padding: 80px 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-link:hover {
  border-color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
  color: #ffffff;
  text-decoration: none;
}

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

/* Footer */

footer {
  text-align: center;
  padding: 40px;
  color: #666;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Responsiveness */

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .profile-photo-container {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .skills-grid, .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* Scroll indicator */

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #00d4ff);
  width: 0%;
  transition: width 0.1s ease;
}

.hero-text h1 {
  font-weight: 900;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00ff88, #00d4ff, #ff0080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite alternate;
}

@media (min-width: 768px) {
  h1 {
    font-size: 84px;
  }
}

@media (max-width: 430px) {
  .nav-container {
    flex-direction: column;
  }
}

dl, ol, ul {
  margin-top: 0;
  margin-bottom: 0;
}

