/* Modern Colorful Reset */
:root {
  --primary: #6366f1;
  --secondary: #a855f7;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, #0f2027, #203a43, #2c5364);
  color: var(--dark);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Profile Header Section */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-out;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid var(--primary);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-photo:hover img {
  transform: scale(1.05);
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.profile-title {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.profile-header .social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.profile-header .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.profile-header .social-links a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Section Cards */
section {
  background: rgb(255, 255, 255);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(160, 174, 192, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.4s; }
section:nth-of-type(3) { animation-delay: 0.6s; }
section:nth-of-type(4) { animation-delay: 0.8s; }

section:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.2);
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 2px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  background: var(--light);
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Project Cards */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

.project:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.project-content p {
  color: #64748b;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-links a:first-child {
  background: var(--primary);
  color: white;
}

.project-links a:last-child {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.project-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-card:hover i {
  color: white;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  color: #64748b;
}



/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .profile-header {
    padding: 1.5rem 0;
  }
  
  .profile-photo {
    width: 150px;
    height: 150px;
  }
  
  .profile-name {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  
  .profile-photo {
    width: 130px;
    height: 130px;
    border-width: 3px;
  }
  
  section {
    padding: 2rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile-name {
    font-size: 1.8rem;
  }
  
  .profile-title {
    font-size: 1rem;
  }
  
  .profile-photo {
    width: 120px;
    height: 120px;
  }
}
/* Remove animation from profile-header and ensure it stays visible */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 3rem;
  /* Remove these animation properties */
  /* animation: fadeIn 1s ease-out; */
  opacity: 1 !important;
  transform: none !important;
}

/* Update section animations to exclude profile-header */
section:not(.profile-header) {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(160, 174, 192, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

/* Update animation delays to exclude profile-header */
section:not(.profile-header):nth-of-type(1) { animation-delay: 0.2s; }
section:not(.profile-header):nth-of-type(2) { animation-delay: 0.4s; }
section:not(.profile-header):nth-of-type(3) { animation-delay: 0.6s; }
section:not(.profile-header):nth-of-type(4) { animation-delay: 0.8s; }