:root {
  --primary-color: #161b1e;
  --primary-color-alt: #22282a;
  --secondary-color: #ebeaef;
  --secondary-color-alt: #cfcfcf;
  --tertiary-color: #2D5BFF;
  --dark-color: #111;
  --dark-color-alt: #22282a;
  --light-color: #fff;
  --text-dark: white;
  --text-gray: rgb(238, 238, 238);
  --font-mono: "Roboto Mono", monospace;
}

html.light-mode {
  --text-dark: #262626;
  --text-gray: #666666;
  --light-color: #111;
  --dark-color: #f2f8f9;
  --dark-color-alt: #fff;
  --primary-color: #ebeaef;
  --primary-color-alt: #cfcfcf;
  --secondary-color: #161b1e;
  --secondary-color-alt: #22282a;
  --tertiary-color: #8A3FFC;
}

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

html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

body::-webkit-scrollbar {
  width: 0.26rem;
}

body::-webkit-scrollbar-track {
  background: var(--primary-color-alt);
}

body::-webkit-scrollbar-thumb {
  background: var(--tertiary-color);
  border-radius: 2rem;
}

.container {
  /* padding: 2rem 0; */
  margin-inline: auto;
  width: min(85%, 70.5rem);
}

/* Header Styles */
header {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo span {
  color: var(--tertiary-color);
}

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

nav ul li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  font-family: var(--font-mono);
}

nav ul li a:hover {
  color: var(--tertiary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--tertiary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 24px;
  cursor: pointer;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 2rem;
}

/* Hero Section */

.home-content {
  display: flex;
  /* color: yellow; */
  /* align-items: center; */
  justify-content: space-between;

}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-color);
  color: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  /* z-index: 2; */
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.hero h1 span {
  color: var(--tertiary-color);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-gray);
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--tertiary-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(45, 91, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45, 91, 255, 0.4);
}

.btn-outline {
  border: 2px solid var(--tertiary-color);
  color: var(--tertiary-color);
}

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

.hero-image {
  /* position: absolute; */
  /* right: 0;
  bottom: 0; */
  /* width: 20%;
  height: auto; */
  max-width: 300px;
  animation: float 6s ease-in-out infinite;
}

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

  50% {
    transform: translateY(-20px);
  }

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

/* Section Styles */
.section {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--tertiary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.section-title h2 {
  font-size: 2.375rem;
  font-weight: 600;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title h2::after {
  content: "";
  display: block;
  position: relative;
  top: -5px;
  width: 300px;
  height: 2px;
  background-color: var(--primary-color-alt);
  opacity: 0.35;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  width: 300px;
  height: 300px;
  /* flex: 1; */
  /* position: relative; */
  border-radius: 50%;
  overflow: hidden;
  border: 15px solid #444444;
  box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5)
}

.about-image img {
  height: 100%;
  width: 100%;
  transition: 0.5s;
  object-fit: cover;
  filter: grayscale(50%);
  ;
}

.about-image img:hover {
  transform: scale(1.2);
  filter: none;
}

/* .about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
} */

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--tertiary-color);
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-gray);
}

.skills {
  margin-top: 30px;
}

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

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  color: var(--secondary-color);
}

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

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, var(--tertiary-color), #8A3FFC);
  border-radius: 4px;
  transition: width 1s ease;
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

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

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.timeline-content {
  padding: 20px;
  background-color: var(--dark-color-alt);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.timeline-content::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--dark-color-alt);
  top: 20px;
  transform: rotate(45deg);
  box-shadow: 5px -5px 10px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -7px;
}

.timeline-date {
  position: absolute;
  width: 120px;
  background: linear-gradient(to right, var(--tertiary-color), #8A3FFC);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(45, 91, 255, 0.3);
  font-family: var(--font-mono);
}

.timeline-item:nth-child(odd) .timeline-date {
  right: -150px;
  top: 15px;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -150px;
  top: 15px;
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--tertiary-color);
}

.timeline-content h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.timeline-content p {
  color: var(--text-gray);
  line-height: 1.6;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: linear-gradient(to right, var(--tertiary-color), #8A3FFC);
  border-radius: 50%;
  top: 20px;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--primary-color), 0 4px 15px rgba(45, 91, 255, 0.3);
}

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

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

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  display: block;
  top: 0;
  position: relative;
  background-color: var(--dark-color-alt);
  color: var(--light-color);
  border-radius: 4px;
  padding: 32px 24px;
  margin-block: 2px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  opacity: 0;
  transform: translateY(50px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transition: all 0.2s ease-out;
  box-shadow: 0 4px 8px rgba(38, 38, 38, 0.3);
  top: -8px;
  background-color: var(--dark-color);
}

.project-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: var(--tertiary-color);
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(2);
  transform-origin: 50% 50%;
  transition: transform 0.15s ease-out;
}

.project-card:hover:before {
  transform: scale(2.15);
}

.project-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.project-card__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-card__title {
  color: var(--secondary-color);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-card__brief {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.project-card__tags {
  color: var(--tertiary-color);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0;
  list-style: none;
  text-transform: lowercase;
  margin: 0;
  padding: 0;
}

.project-card__tags>li {
  display: inline;
  margin-right: 0.5rem;
}

.project-card__links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.project-card__links a {
  background-color: var(--tertiary-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.project-card__links a:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

.project-card__go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 32px;
  height: 32px;
  overflow: hidden;
  top: 0;
  right: 0;
  background-color: var(--tertiary-color);
  border-radius: 0 4px 0 32px;
}

.project-card__go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: #fff;
  font-family: courier, sans;
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(45, 91, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--tertiary-color);
}

.contact-text h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.contact-text p,
.contact-text a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--tertiary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(45, 91, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--tertiary-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
  background-color: var(--dark-color-alt);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--primary-color-alt);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.form-control:focus {
  border-color: var(--tertiary-color);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.2);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(to right, var(--tertiary-color), #8A3FFC);
  color: var(--primary-color);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 91, 255, 0.3);
  font-family: var(--font-mono);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45, 91, 255, 0.4);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--secondary-color);
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.footer-logo span {
  color: var(--tertiary-color);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--tertiary-color);
}

.copyright {
  color: var(--text-gray);
  font-size: 14px;
  font-family: var(--font-mono);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .hero-image {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .contact-container {
    flex-direction: column;
  }

  .section-title h2::after {
    width: 200px;
  }
}

@media (max-width: 768px) {

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

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 0;
  }

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

  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date {
    left: 70px;
    right: auto;
    top: -25px;
    z-index: 1;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    left: -7px;
    right: auto;
  }

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

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: left 0.3s ease;
  }

  nav ul.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .section-title h2::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 10px 20px;
  }


  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}