/* Devfolio-style Portfolio Page */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

.hero-text {
  animation: slideInLeft 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #b8c5d6;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #8892a0;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  animation: slideInRight 0.8s ease-out;
}

.hero-photo {
  width: 280px;
  height: 320px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  animation: float 3s ease-in-out infinite;
  border: 3px solid rgba(102, 126, 234, 0.2);
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  animation: float 3s ease-in-out infinite;
}

/* About Section */
.about-content.arranged-about {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-main {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  max-width: 600px;
}

.about-stats {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(102,126,234,0.08);
  padding: 32px 0;
  margin: 0 auto;
}

.about-summary {
  margin-bottom: 24px;
}

.about-summary p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 20px;
}

.about-highlights {
  margin: 0 0 18px 18px;
  padding: 0;
  list-style: disc inside;
  color: #495057;
  font-size: 1.08rem;
}

.about-highlights li {
  margin-bottom: 10px;
}

.about-highlights a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.about-highlights a:hover {
  text-decoration: underline;
}

.about-contact {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 1.05rem;
  color: #333;
  box-shadow: 0 2px 8px rgba(102,126,234,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.about-contact a {
  color: #667eea;
  text-decoration: none;
}

.about-contact a:hover {
  text-decoration: underline;
}

.about-stats {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-width: 200px;
  max-width: 260px;
  align-items: center;
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(102,126,234,0.08);
  padding: 32px 0;
  margin: 0 auto;
}

.stat {
  text-align: center;
  color: #1a1a2e;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #667eea;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline/Accordion Styles */
.accordion {
  width: 100%;
}

.accordion-header {
  width: 100%;
  background: #f8f9fa;
  border: none;
  outline: none;
  text-align: left;
  padding: 22px 28px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #1a1a2e;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102,126,234,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header[aria-expanded="true"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.accordion-header .company {
  font-size: 1rem;
  font-weight: 500;
  color: #667eea;
  margin-left: 18px;
}

.accordion-header[aria-expanded="true"] .company {
  color: #fff;
}

.accordion-panel {
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.06);
  padding: 18px 32px 24px 32px;
  margin-bottom: 18px;
  animation: fadeInUp 0.4s ease-out;
}

.accordion-panel ul {
  list-style: none;
  padding: 0;
}

.accordion-panel li {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.accordion-panel li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skill-category {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out backwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }
.skill-category:nth-child(4) { animation-delay: 0.4s; }

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 25px;
  font-weight: 700;
  text-align: center;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech span {
  background: #f8f9fa;
  color: #667eea;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Certifications Section */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.certification-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out backwards;
}

.certification-card:nth-child(1) { animation-delay: 0.1s; }
.certification-card:nth-child(2) { animation-delay: 0.2s; }
.certification-card:nth-child(3) { animation-delay: 0.3s; }
.certification-card:nth-child(4) { animation-delay: 0.4s; }
.certification-card:nth-child(5) { animation-delay: 0.5s; }
.certification-card:nth-child(6) { animation-delay: 0.6s; }

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.certification-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.certification-card h3 {
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.certification-card p {
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.contact-info p {
  font-size: 1.2rem;
  color: #495057;
  line-height: 1.8;
  margin-bottom: 30px;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 25px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: #667eea;
}

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

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .about-content.arranged-about {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .about-main, .about-stats {
    max-width: 100%;
    min-width: 0;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
    padding: 24px 0;
    gap: 18px;
  }

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

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

  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
  }

  .about-content.arranged-about {
    flex-direction: column;
    gap: 30px;
  }

  .about-main,
  .about-stats {
    max-width: 100%;
  }
}

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .hero-photo {
    width: 220px;
    height: 250px;
    margin: 0 auto;
  }

  .accordion-header, .accordion-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-actions {
    justify-content: center;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .hero-photo {
    width: 180px;
    height: 200px;
  }

  .avatar {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }

  .stat {
    padding: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }
}
