:root {
  --primary-color: #6366f1; /* Modern indigo */
  --primary-dark: #4f46e5; /* Darker indigo for hover */
  --primary-light: #a5b4fc; /* Light indigo for accents */
  --secondary-color: #10b981; /* Modern emerald */
  --accent-color: #f59e0b; /* Warm amber */
  --text-dark: #343434; /* Rich dark gray */
  --text-medium: #6b7280; /* Medium gray */
  --text-light: #9ca3af; /* Light gray */
  --background-light: #f9fafb; /* Very light gray */
  --background-white: #f5f7f8; /* Pure white */
  --border-light: #e5e7eb; /* Light border */
  --shadow-color: rgba(31, 41, 55, 0.1); /* Subtle shadow */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent-color);
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--background-white);
}

.section {
  padding: 50px;
}

.section-dark {
  background-color: var(--background-white);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::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.7s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--background-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.9),
    rgba(79, 70, 229, 1)
  );
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--background-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-color);
  transition: transform 0.3s ease-in-out;
}

.header-hidden {
  transform: translateY(-100%);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

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

.nav-link {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.nav-toggle:hover {
  background-color: var(--background-white);
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 3px 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 50%,
    var(--secondary-color) 100%
  );
  background-size: 400% 400%;
  animation: gradientMove 10s ease-in-out infinite;
  color: var(--background-white);
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

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

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

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
}

#skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

#skills .container {
  width: 100%;
  align-items: stretch;
  margin: 0 auto;
}

.skills-list {
  min-width: 1000px;
  max-width: 1000px;
}

.skills h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-medium);
}

.profile-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow-color);
  max-width: 600px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid var(--background-white);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--background-white);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.job-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.company {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.duration {
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 1rem;
}

.job-description {
  list-style: none;
}

.job-description li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-medium);
}

.job-description li::before {
  content: "▶";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--background-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.project-card:hover {
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.project-image {
  height: 200px;
  background-color: var(--background-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
}

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

.project-content {
  padding: 1.5rem;
}

.project-title {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.project-description {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.tech-tag {
  background-color: var(--background-wight);
  color: var(--text-medium);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
}

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

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

.contact-info {
  max-width: 600px;
  align-items: right;
}

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.contact-info p {
  margin-bottom: 3rem;
  line-height: 1.6;
  color: var(--text-medium);
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  color: var(--text-medium);
}

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

.social-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.social-link:hover {
  color: var(--primary-dark);
}

.contact-form {
  background: var(--background-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-light);
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group .btn-secondary {
  color: var(--primary-color);
}

.form-group .btn-secondary:hover {
  color: var(--background-light);
  scale: 1.1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.9),
    rgba(79, 70, 229, 1)
  );
}

.footer {
  background-color: var(--background-white);
  text-align: center;
  padding: 2rem 0;
  width: 100%;
  margin-top: auto;
}

.footer .container {
  width: 100%;
  max-width: none;
}

.thank-you-back-btn .btn {
  color: var(--primary-color)
}

.thank-you-back-btn .btn:hover {
  color: var(--primary-dark);
}