/* Premium Portfolio CSS with Advanced Effects */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Theme */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-accent: #667eea;
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
  --border-radius: 24px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Advanced Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--dark-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Premium Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(240, 147, 251, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Floating Particles Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

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

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 80%; left: 90%; animation-delay: 3s; }
.particle:nth-child(5) { top: 40%; left: 60%; animation-delay: 4s; }

/* Premium About Section */
.about {
  padding: 120px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 80px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.about-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--secondary-gradient);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Premium Photo Container */
.photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.photo-container::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--primary-gradient);
  animation: rotate 10s linear infinite;
  z-index: -1;
}

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

.profile-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 
    var(--shadow-glow),
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.photo-placeholder {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-premium);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.photo-placeholder:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

/* Premium Typography */
.about-text h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 40px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.02em;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-gradient);
  border-radius: 2px;
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 28px;
  color: var(--text-secondary);
  text-align: justify;
  line-height: 1.8;
  font-weight: 400;
}

.about-text strong {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Premium Skills Section */
.skills {
  padding: 120px 20px;
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border);
}

.skills h2 {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 80px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.skills-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.skill-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
}

.skill-box:hover::before {
  left: 0;
}

.skill-box:hover {
  transform: translateY(-12px);
  box-shadow: 
    var(--shadow-glow),
    0 35px 70px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.skill-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-box ul {
  list-style: none;
}

.skill-box li {
  padding: 12px 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 30px;
  transition: var(--transition);
  font-weight: 400;
  font-size: 1.1rem;
}

.skill-box li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: transparent;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.9rem;
  transition: var(--transition);
}

.skill-box li:hover {
  color: var(--text-primary);
  padding-left: 40px;
  transform: translateX(5px);
}

/* Premium Education Section */
.education {
  padding: 120px 20px;
  position: relative;
}

.education::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border);
}

.education h2 {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 80px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.edu-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.edu-box {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.edu-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary-gradient);
  transform: scaleY(0);
  transition: var(--transition);
}

.edu-box:hover::after {
  transform: scaleY(1);
}

.edu-box:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.2),
    0 40px 80px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.edu-box h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.edu-box p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.edu-box ul {
  list-style: none;
}

.edu-box li {
  padding: 8px 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  transition: var(--transition);
}

.edu-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: transparent;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.edu-box li:hover {
  color: var(--text-primary);
  padding-left: 35px;
}

/* Premium Contact Section */
.contact {
  padding: 120px 20px 80px;
  text-align: center;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border);
}

.contact h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.contact p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.contact-container a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 60px;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.contact-container a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: var(--transition);
  z-index: -1;
}

.contact-container a:hover::before {
  left: 0;
}

.contact-container a:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  color: #ffffff;
  border-color: transparent;
}

/* Premium Responsive Design */
@media (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    gap: 60px;
    text-align: center;
  }
  
  .edu-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 40px 30px;
    gap: 40px;
  }
  
  .profile-photo, .photo-placeholder {
    width: 280px;
    height: 280px;
  }
  
  .photo-container::before {
    width: 300px;
    height: 300px;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .edu-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .contact-container a {
    width: 250px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 30px 20px;
    gap: 30px;
  }
  
  .profile-photo, .photo-placeholder {
    width: 240px;
    height: 240px;
  }
  
  .photo-container::before {
    width: 260px;
    height: 260px;
  }
  
  .skill-box, .edu-box {
    padding: 30px;
  }
  
  .skills, .education, .contact {
    padding: 80px 20px;
  }
  
  .about {
    padding: 60px 20px;
  }
}

/* Premium Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-container,
.skill-box,
.edu-box {
  animation: fadeInUp 0.8s ease-out;
}

.skill-box:nth-child(2) { animation-delay: 0.2s; }
.skill-box:nth-child(3) { animation-delay: 0.4s; }
.skill-box:nth-child(4) { animation-delay: 0.6s; }

.edu-box:nth-child(2) { animation-delay: 0.2s; }
.edu-box:nth-child(3) { animation-delay: 0.4s; }