/* Custom Variables and Core Design System */
:root {
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --text-muted: #475569;
  --primary-color: #ea580c;
  --primary-hover: #c2410c;
  --border-color: #475569;
  /*#e2e8f0*/
  --card-bg: #ffffff;
  --badge-bg: #ffffff;
  --badge-border: #f1f5f9;
  --shadow-color: rgba(254, 215, 170, 0.6);
  --btn-sec-hover: #fff7ed;
  --gradient-orange: rgba(254, 215, 170, 0.45);
  --gradient-pink: rgba(253, 224, 230, 0.45);
  --tag-bg: #a4b8d1;
  --tag-text: #334155;
  --tag-highlight-bg: #f0d4b1;
  --tag-highlight-text: #c2410c;

  --nav-bg: rgba(248, 250, 252, 0.85);
  --nav-border: rgba(226, 232, 240, 0.8);
  --nav-text: #475569;
}

:root.dark {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --primary-color: #fb923c;
  --primary-hover: #f97316;
  --border-color: #334155;
  --card-bg: #1e293b;
  --badge-bg: #1e293b;
  --badge-border: #334155;
  --shadow-color: rgba(0, 0, 0, 0);
  --btn-sec-hover: rgba(251, 146, 60, 0.1);
  --gradient-orange: rgba(124, 45, 18, 0.25);
  --gradient-pink: rgba(80, 7, 36, 0.25);
  --tag-bg: #334155;
  --tag-text: #cbd5e1;
  --tag-highlight-bg: rgba(251, 146, 60, 0.15);
  --tag-highlight-text: #fdba74;

  --nav-bg: rgba(15, 23, 42, 0.85);
  --nav-border: rgba(51, 65, 85, 0.8);
  --nav-text: #cbd5e1;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.app-container {
  min-height: 100vh;
  position: relative;
}

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

/* Background Blur Gradients */
.bg-gradient {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -10;
  pointer-events: none;
  transition: background 0.3s ease;
}

.gradient-top-right {
  top: 0;
  right: 0;
  background: var(--gradient-orange);
  transform: translate(33%, -33%);
}

.gradient-bottom-left {
  bottom: 0;
  left: 0;
  background: var(--gradient-pink);
  transform: translate(-33%, 33%);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  border-radius: 0 0 16px 16px;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.orange-text {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
}

.nav-link {
  color: var(--nav-text);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active {
  border-color: var(--primary-color);
}

.theme-toggle-btn {
  background: #1e293b;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: #93c5fd;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn svg {
  stroke: #93c5fd;
}

.theme-toggle-btn:hover {
  background-color: var(--text-muted);
  color: var(--bg-color);
}

.icon-sun {
  display: none;
}

:root.dark .icon-moon {
  display: none;
}

:root.dark .icon-sun {
  display: block;
}

/* Main content layout */
main.container {
  padding-top: 2rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0 5rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    gap: 5rem;
    padding: 3rem 0 8rem 0;
  }
}

.hero-text-col {
  flex: 1;
  max-width: 500px;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.wave-emoji {
  font-size: 1.5rem;
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.5s infinite;
}

.hero-name {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-color);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 4.5rem;
  }
}

.hero-typing-container {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-typing-container {
    font-size: 1.875rem;
  }
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.75rem;
  background-color: var(--primary-color);
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--btn-sec-hover);
  transform: translateY(-2px);
}

.hero-image-col {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-container {
  position: relative;
  width: 280px;
  height: 280px;
}

@media (min-width: 768px) {
  .profile-container {
    width: 380px;
    height: 380px;
  }
}

.profile-circle-bg {
  position: absolute;
  inset: 0;
  background: #8c7a7e;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

:root.dark .profile-circle-bg {
  background: #8c7a7e;
}

.profile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #8c7a7e;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.floating-badge {
  position: absolute;
  background: #1e2336;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.icon-badge {
  width: 28px;
  height: 28px;
}

.badge-code {
  left: -1rem;
  top: 25%;
  color: #f97316;
  animation: float 8s ease-in-out infinite;
}

.badge-github {
  right: -1.5rem;
  bottom: 25%;
  color: #ffffff;
  animation: float 6s ease-in-out infinite;
}

.badge-terminal {
  left: 2.5rem;
  bottom: -1.5rem;
  color: #10b981;
  animation: float 4s ease-in-out infinite;
}

/* Sections General */
.section-container {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.025em;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skills-card {
  /* Match the attached image colors */
  --card-bg: #1e293b;
  --tag-bg: #2c3b4f;
  --tag-text: #cbd5e1;
  --tag-highlight-bg: #4a2820;
  --tag-highlight-text: #fdba74;
  --primary-color: #fb923c;

  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.skills-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-card-title i {
  width: 20px;
  height: 20px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  transition: all 0.2s ease;
}

.skill-tag.highlight {
  background-color: var(--tag-highlight-bg);
  color: var(--tag-highlight-text);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  /* Match the attached image colors */
  --card-bg: #1e293b;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;

  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.project-img-link {
  display: block;
  overflow: hidden;
}

.project-img-container {
  height: 11rem;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.project-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
  transition: background-color 0.5s ease;
}

.project-card:hover .project-img-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.05));
}

.project-info {
  padding: 1.5rem;
  background: var(--card-bg);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  height: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.contact-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

@media (min-width: 768px) {
  .contact-links {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  background: #1e293b;
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 50%;
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-icon svg {
  stroke: #60a5fa;
}

.contact-icon:hover {
  transform: scale(1.05);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.contact-icon i {
  width: 24px;
  height: 24px;
}

.contact-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-text_1 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}


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

.social-btn {
  background: #1e293b;
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 50%;
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-btn svg {
  stroke: #60a5fa;
}

.social-btn:hover {
  transform: scale(1.05);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.social-btn i {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background-color: var(--bg-color);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

.back-to-top-btn i {
  width: 24px;
  height: 24px;
}

/* Animations Keyframes */
@keyframes wave {
  0% {
    transform: rotate(0.0deg)
  }

  10% {
    transform: rotate(14.0deg)
  }

  20% {
    transform: rotate(-8.0deg)
  }

  30% {
    transform: rotate(14.0deg)
  }

  40% {
    transform: rotate(-4.0deg)
  }

  50% {
    transform: rotate(10.0deg)
  }

  60% {
    transform: rotate(0.0deg)
  }

  100% {
    transform: rotate(0.0deg)
  }
}

@keyframes float {
  0% {
    transform: translateY(0px)
  }

  50% {
    transform: translateY(-16px)
  }

  100% {
    transform: translateY(0px)
  }
}

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