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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
  background: linear-gradient(135deg, #2563eb 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #64748b 100%);
  color: white;
  padding: 120px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.highlight {
  color: #e2e8f0;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: white;
  color: #1e40af;
  border-color: white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: #1e40af;
}

/* Developer Illustration */
.developer-illustration {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.developer-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.monitor {
  background: #2d3748;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
}

.screen {
  background: #1a202c;
  border-radius: 5px;
  overflow: hidden;
  width: 280px;
  height: 180px;
}

.editor-header {
  background: #2d3748;
  padding: 0.5rem;
  border-bottom: 1px solid #4a5568;
}

.editor-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab {
  background: #4a5568;
  color: #e2e8f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px 4px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
}

.tab.active {
  background: #1a202c;
  color: #63b3ed;
}

.editor-content {
  padding: 1rem;
  font-family: "Fira Code", "Monaco", monospace;
  font-size: 0.75rem;
  line-height: 1.4;
}

.code-line {
  margin: 0.5rem 0;
  animation: typewriter 3s ease-in-out infinite;
}

.code-keyword {
  color: #f56565;
  font-weight: bold;
}

.code-function {
  color: #68d391;
}

.code-variable {
  color: #63b3ed;
}

.code-string {
  color: #faf089;
}

.desk-items {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.coffee-cup {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #f6e05e;
  animation: steam 2s ease-in-out infinite alternate;
}

.tech-icons {
  display: flex;
  gap: 1rem;
}

.tech-icons i {
  font-size: 2rem;
  opacity: 0.8;
  animation: float 3s ease-in-out infinite;
}

.tech-icons i:nth-child(1) {
  color: #f7df1e;
  animation-delay: 0s;
}

.tech-icons i:nth-child(2) {
  color: #61dafb;
  animation-delay: 0.5s;
}

.tech-icons i:nth-child(3) {
  color: #8cc84b;
  animation-delay: 1s;
}

.tech-icons i:nth-child(4) {
  color: #3776ab;
  animation-delay: 1.5s;
}

@keyframes typewriter {
  0%,
  50% {
    opacity: 1;
  }
  25% {
    opacity: 0.7;
  }
  75% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

@keyframes steam {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-5px);
  }
}

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

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 80px 0;
  background: #f1f5f9;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555;
}

.about-intro {
  margin-bottom: 3rem;
}

.experience {
  margin-bottom: 3rem;
}

.experience h3 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.4rem;
}

.experience-list {
  display: grid;
  gap: 1.5rem;
}

.experience-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.experience-item i {
  font-size: 1.5rem;
  color: #2563eb;
  margin-top: 0.2rem;
  min-width: 24px;
}

.experience-item h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

.experience-item p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.skills {
  margin-bottom: 3rem;
}

.skills h3 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.4rem;
}

.skill-categories {
  display: grid;
  gap: 2rem;
}

.skill-category h4 {
  margin-bottom: 1rem;
  color: #2563eb;
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interests {
  margin-bottom: 2rem;
}

.interests h3 {
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.4rem;
}

.interests p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: #2563eb;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
}

.about-stats {
  display: grid;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-weight: 500;
}

/* Projects Section */
.projects {
  padding: 80px 0;
}

.github-input {
  margin-bottom: 3rem;
  text-align: center;
}

.input-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.github-input-field {
  padding: 12px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1rem;
  min-width: 300px;
  outline: none;
  transition: border-color 0.3s ease;
}

.github-input-field:focus {
  border-color: #2563eb;
}

.project-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-controls {
  display: flex;
  gap: 1rem;
}

.filter-select {
  padding: 8px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: #2563eb;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 8px 12px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

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

.project-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.project-languages {
  margin-bottom: 1.5rem;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.language-item:last-child {
  margin-bottom: 0;
}

.language-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.language-name {
  color: #333;
  font-weight: 500;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: #666;
}

.language-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.project-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.topic-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 18px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: center;
  flex: 1;
}

.project-link:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.project-link.demo {
  background: #64748b;
}

.project-link.demo:hover {
  background: #475569;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.project-link.disabled-demo {
  background: #a0aec0;
  cursor: not-allowed;
  opacity: 0.7;
}

.project-link.disabled-demo:hover {
  background: #a0aec0;
  transform: none;
  box-shadow: none;
}

/* Loading and Error States */
.loading,
.error-message {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.hidden {
  display: none !important;
}

.error-message {
  color: #e53e3e;
  background: #fed7d7;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #f1f5f9;
}

.contact-content {
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: #666;
}

.contact-item i {
  font-size: 1.5rem;
  color: #2563eb;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Language Colors */
.language-colors {
  --javascript: #f1e05a;
  --python: #3572a5;
  --html: #e34c26;
  --css: #1572b6;
  --typescript: #2b7489;
  --java: #b07219;
  --csharp: #239120;
  --cpp: #f34b7d;
  --go: #00add8;
  --rust: #dea584;
  --php: #4f5d95;
  --ruby: #701516;
  --swift: #ffac45;
  --kotlin: #f18e33;
  --dart: #00b4ab;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .project-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls {
    justify-content: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .input-group {
    flex-direction: column;
    align-items: center;
  }

  .github-input-field {
    min-width: 250px;
    width: 100%;
    max-width: 400px;
  }
}
