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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #ffffff;
  color: #1e293b;
  overflow-x: hidden;
  line-height: 1.6;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1e293b;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e2e8f0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.terminal-prompt {
  font-family: "Courier New", monospace;
  color: #10b981;
  font-size: 1.1rem;
}

.navbar-nav .nav-link {
  color: #64748b;
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #1e293b;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-dark .navbar-toggler {
  border-color: #cbd5e1;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 41, 59, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc, #e0e7ff);
  overflow: hidden;
  padding-top: 80px;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: #6366f1;
  border-radius: 50%;
  opacity: 0.15;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.15;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

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

.typing-container {
  height: 60px;
}

.cursor {
  animation: blink 1s infinite;
  color: #6366f1;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-outline-light {
  border: 2px solid #6366f1;
  color: #6366f1;
  background: white;
}

.btn-outline-light:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  color: #6366f1;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* Code Window */
.code-window {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: fadeInRight 1s ease-out;
  border: 1px solid #e2e8f0;
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.code-header {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

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

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.code-title {
  margin-left: auto;
  font-size: 0.85rem;
  color: #64748b;
  font-family: "Courier New", monospace;
}

.code-body {
  padding: 1.5rem;
  min-height: 300px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
  background: #f8fafc;
}

.code-body pre {
  margin: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: #64748b;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Stats Section */
.stats-section {
  background: #f8fafc;
  position: relative;
  z-index: 2;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  font-size: 1.5rem;
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

/* Skills Section */
.skills-preview,
.skills-section {
  background: white;
  padding: 5rem 0;
}

.skill-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: #6366f1;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.skill-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.skill-category {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  padding: 5rem 0;
}

.cta-card {
  text-align: center;
  color: white;
}

.social-links-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links-cta .social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  text-decoration: none;
}

.social-links-cta .social-icon:hover {
  background: white;
  color: #6366f1;
  transform: translateY(-5px);
}

/* Page Header */
.page-header {
  padding: 150px 0 80px;
  background: linear-gradient(135deg, #f8fafc, #e0e7ff);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

/* Profile Card */
.profile-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.profile-image-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  padding: 5px;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.contact-link {
  display: block;
  color: #64748b;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #6366f1;
}

.bio-content {
  padding: 2rem;
  color: #475569;
}

.bio-content h2 {
  color: #1e293b;
}

.bio-content p {
  color: #475569;
}

.facts-list {
  list-style: none;
  padding: 0;
}

.facts-list li {
  padding: 0.5rem 0;
  color: #475569;
}

.facts-list i {
  color: #10b981;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #6366f1, #ec4899);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: #6366f1;
  border: 4px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  border: 1px solid #e2e8f0;
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.timeline-content .location {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-content ul {
  text-align: left;
  color: #475569;
  line-height: 1.8;
}

/* Education & Achievement Cards */
.education-card,
.achievement-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.education-card:hover,
.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.edu-icon,
.achievement-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.education-card h3,
.achievement-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.education-card h4 {
  color: #6366f1;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.education-card p,
.achievement-card p {
  color: #475569;
}

.edu-date {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.coursework {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Projects */
.filter-section {
  overflow: visible;
  padding: 2rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.project-image {
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.project-content p {
  color: #64748b;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #ede9fe;
  color: #6366f1;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Terminal */
.terminal-section {
  min-height: 100vh;
  padding: 120px 0 50px;
  background: #f8fafc;
}

.terminal-window {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-family: "Courier New", monospace;
}

.terminal-header {
  background: #0f172a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background: #ef4444;
}

.terminal-button.yellow {
  background: #f59e0b;
}

.terminal-button.green {
  background: #10b981;
}

.terminal-title {
  color: #94a3b8;
  font-size: 0.9rem;
}

.terminal-actions {
  display: flex;
  gap: 0.5rem;
}

.terminal-action {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.terminal-action:hover {
  color: #f1f5f9;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 500px;
  max-height: 70vh;
  overflow-y: auto;
  color: #a9b1d6;
}

.terminal-output {
  margin-bottom: 1rem;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  color: #a9b1d6;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.terminal-info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.terminal-info-card i {
  font-size: 2rem;
  color: #6366f1;
}

.terminal-info-card h6 {
  color: #1e293b;
}

.terminal-info-card p {
  color: #64748b;
}

.quick-cmd-btn {
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: "Courier New", monospace;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-cmd-btn:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

/* Blog */
.blog-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.blog-category {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-date {
  color: #64748b;
}

.blog-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.blog-content {
  color: #475569;
  line-height: 1.8;
}

.blog-content h3 {
  color: #1e293b;
}

.blog-list {
  list-style: none;
  padding-left: 0;
}

.blog-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: #475569;
}

.blog-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
}

.blog-list strong {
  color: #6366f1;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Modal */
.modal-content {
  background-color: white;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.modal-title {
  color: #1e293b;
  font-weight: 700;
}

.modal-body {
  color: #475569;
}

.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6 {
  color: #1e293b;
}

.btn-close {
  filter: none;
}

#projectModal .project-highlights ul {
  list-style: none;
  padding-left: 0;
}

#projectModal .project-highlights li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: #475569;
}

#projectModal .project-highlights li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
  font-size: 1.5rem;
}

#projectModal .btn-outline-primary {
  border-color: #6366f1;
  color: #6366f1;
}

#projectModal .btn-outline-primary:hover {
  background-color: #6366f1;
  color: white;
}

#projectModal .btn-primary {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border: none;
  color: white;
}

/* Footer */
.footer {
  background: #f8fafc;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }

  .hero-section {
    padding-top: 100px;
  }

  .code-window {
    margin-top: 3rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
}
