/* Dev Portfolio Public Styles */

/* Color Variables */
:root {
  --primary-color: 210 79% 46%; /* #2563EB */
  --secondary-color: 220 13% 91%; /* #E5E7EB */
  --accent-color: 262 83% 58%; /* #8B5CF6 */
  --text-color: 220 39% 11%; /* #111827 */
  --text-muted: 220 9% 46%; /* #6B7280 */
  --background: 0 0% 100%; /* #FFFFFF */
  --surface: 220 13% 91%; /* #E5E7EB */
  --border: 220 13% 91%; /* #E5E7EB */
  --success: 142 71% 45%; /* #10B981 */
  --warning: 45 93% 47%; /* #F59E0B */
  --error: 0 84% 60%; /* #EF4444 */
}

/* Base Styles */
.dev-portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: hsl(var(--text-color));
}

.dev-portfolio-section {
  margin-bottom: 60px;
}

.dev-portfolio-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: hsl(var(--text-color));
  position: relative;
}

.dev-portfolio-section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  border-radius: 2px;
}

/* Projects Grid */
.dev-portfolio-projects {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

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

.dev-portfolio-projects.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.dev-portfolio-projects.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dev-portfolio-projects.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .dev-portfolio-projects.columns-2,
  .dev-portfolio-projects.columns-3,
  .dev-portfolio-projects.columns-4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .dev-portfolio-projects.columns-3,
  .dev-portfolio-projects.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Project Cards */
.dev-portfolio-project-card {
  background: hsl(var(--background));
  border-radius: 16px;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
}

.dev-portfolio-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dev-portfolio-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 12px 24px -8px rgba(0, 0, 0, 0.08);
  border-color: hsl(var(--primary-color) / 0.2);
}

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

.project-thumbnail {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dev-portfolio-project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.project-content {
  padding: 32px 24px 24px;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tech-tag {
  background: linear-gradient(135deg, hsl(var(--primary-color) / 0.1), hsl(var(--accent-color) / 0.1));
  color: hsl(var(--primary-color));
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid hsl(var(--primary-color) / 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(135deg, hsl(var(--primary-color) / 0.15), hsl(var(--accent-color) / 0.15));
  transform: translateY(-1px);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0;
  text-transform: capitalize;
}

.project-status.status-completed {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.3);
}

.project-status.status-in-progress {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  border: 1px solid hsl(var(--warning) / 0.3);
}

.project-status.status-planned {
  background: hsl(var(--text-muted) / 0.1);
  color: hsl(var(--text-muted));
  border: 1px solid hsl(var(--text-muted) / 0.3);
}

.project-timeline {
  color: hsl(var(--text-muted));
  font-size: 0.9rem;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-timeline::before {
  content: '📅';
  margin-right: 4px;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: hsl(var(--text-color));
}

.project-excerpt {
  color: hsl(var(--text-muted));
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tech-tag {
  background: hsl(var(--surface));
  color: hsl(var(--text-color));
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid hsl(var(--border));
}

.project-status {
  margin-bottom: 20px;
}

.project-status span {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-completed span {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  border: 1px solid hsl(var(--success) / 0.2);
}

.status-in-progress span {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
  border: 1px solid hsl(var(--warning) / 0.2);
}

.status-planned span {
  background: hsl(var(--text-muted) / 0.1);
  color: hsl(var(--text-muted));
  border: 1px solid hsl(var(--text-muted) / 0.2);
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-link {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.live-link {
  background: hsl(var(--primary-color));
  color: white;
}

.live-link:hover {
  background: hsl(var(--primary-color) / 0.9);
  transform: translateY(-1px);
}

.github-link {
  background: hsl(var(--text-color));
  color: white;
}

.github-link:hover {
  background: hsl(var(--text-color) / 0.9);
  transform: translateY(-1px);
}

.details-link {
  background: transparent;
  color: hsl(var(--primary-color));
  border-color: hsl(var(--primary-color));
}

.details-link:hover {
  background: hsl(var(--primary-color));
  color: white;
  transform: translateY(-1px);
}

/* Skills Display */
.dev-portfolio-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.skills-category {
  background: hsl(var(--background));
  border-radius: 12px;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.skills-category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: hsl(var(--text-color));
  text-transform: capitalize;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 500;
  color: hsl(var(--text-color));
}

.skill-proficiency {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  text-transform: capitalize;
}

.skill-bar {
  height: 8px;
  background: hsl(var(--surface));
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
  background: linear-gradient(90deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
}

.skill-progress.beginner {
  width: 25%;
}

.skill-progress.intermediate {
  width: 50%;
}

.skill-progress.advanced {
  width: 75%;
}

.skill-progress.expert {
  width: 100%;
}

/* About Section */
.dev-portfolio-about {
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--surface)) 100%);
  border-radius: 20px;
  padding: 60px 40px;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dev-portfolio-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
}

#about-me {
  padding: 80px 0;
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--surface)) 100%);
  position: relative;
}

#about-me::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, hsl(var(--primary-color) / 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, hsl(var(--accent-color) / 0.05) 0%, transparent 50%);
  pointer-events: none;
}

#about-me h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

/* About Me Personal Content */
.about-me-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding: 40px;
  background: hsl(var(--background));
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid hsl(var(--border));
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.about-me-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.about-me-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.about-me-image::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  z-index: -1;
}

.about-me-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.about-me-image:hover img {
  transform: scale(1.05);
}

.about-me-text {
  flex: 1;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.about-me-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 25px 0;
  color: hsl(var(--text-color));
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  position: relative;
}

.about-me-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  border-radius: 2px;
}

.about-me-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: hsl(var(--text-muted));
  margin-bottom: 25px;
  opacity: 0.9;
}

.about-me-text p:last-of-type {
  margin-bottom: 40px;
}

/* Social Links in About Section */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.social-links li {
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, hsl(var(--surface)), hsl(var(--background)));
  color: hsl(var(--text-color));
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid hsl(var(--border));
  font-size: 22px;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

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

.social-links a:hover {
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  color: white;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px hsl(var(--primary-color) / 0.4);
  border-color: hsl(var(--primary-color));
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design for About Me */
@media (max-width: 768px) {
  #about-me {
    padding: 60px 0;
  }
  
  #about-me h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
  
  .about-me-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 30px 20px;
  }
  
  .about-me-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .about-me-text h2 {
    font-size: 2.2rem;
    text-align: center;
  }
  
  .about-me-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-me-content {
    padding: 25px 15px;
  }
  
  .about-me-text h2 {
    font-size: 1.8rem;
  }
  
  .about-me-text p {
    font-size: 1rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

.about-content {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: hsl(var(--text-muted));
}

.about-content p {
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--text-color));
  text-decoration: none;
  font-weight: 500;
}

.contact-item:hover {
  color: hsl(var(--primary-color));
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: hsl(var(--surface));
  color: hsl(var(--text-color));
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid hsl(var(--border));
}

.social-link:hover {
  background: hsl(var(--primary-color));
  color: white;
  transform: translateY(-3px);
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: hsl(var(--primary-color));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.resume-link:hover {
  background: hsl(var(--primary-color) / 0.9);
  transform: translateY(-2px);
}

/* Contact Form */
.dev-portfolio-contact-form {
  background: hsl(var(--background));
  border-radius: 12px;
  padding: 30px;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: hsl(var(--text-color));
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: hsl(var(--text-color));
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid hsl(var(--border));
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: hsl(var(--background));
  color: hsl(var(--text-color));
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--primary-color));
  box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: hsl(var(--primary-color));
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-submit:hover {
  background: hsl(var(--primary-color) / 0.9);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Empty States */
.dev-portfolio-empty {
  text-align: center;
  padding: 60px 20px;
  color: hsl(var(--text-muted));
  font-size: 1.1rem;
  background: hsl(var(--surface) / 0.5);
  border-radius: 12px;
  border: 2px dashed hsl(var(--border));
}

/* Loading States */
.dev-portfolio-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid hsl(var(--surface));
  border-top: 4px solid hsl(var(--primary-color));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .dev-portfolio-container {
    padding: 15px;
  }
  
  .dev-portfolio-section-title {
    font-size: 2rem;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .social-links {
    gap: 15px;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-link {
    flex: none;
  }
}

/* Print Styles */
@media print {
  .dev-portfolio-container {
    max-width: none;
    padding: 0;
  }
  
  .dev-portfolio-project-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .project-links {
    display: none;
  }
  
  .social-links {
    display: none;
  }
}

/* Accessibility Improvements */
.dev-portfolio-container *:focus {
  outline: 2px solid hsl(var(--primary-color));
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.slide-up {
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
