/* Base Styles */
:root {
  --primary-color: #66bb6a;
  --secondary-color: #43a047;
  --dark-color: #2e7d32;
  --light-color: #1b1b1b;
  --text-color: #f4f4f4;
  --light-text: #f4f4f4;
  --gray-color: #aaa;
  --light-gray: #222;
  --dark-gray: #ccc;
  --border-color: #444;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  /* Background colors */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --card-bg: #1e1e1e;
}

/* Light Mode Colors - Not used by default */
body.light-mode {
  --primary-color: #4caf50;
  --secondary-color: #2e7d32;
  --dark-color: #1b5e20;
  --light-color: #e8f5e9;
  --text-color: #333;
  --light-text: #f4f4f4;
  --gray-color: #777;
  --light-gray: #f9f9f9;
  --dark-gray: #444;
  --border-color: #ddd;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

  /* Background colors */
  --bg-primary: #fff;
  --bg-secondary: #f9f9f9;
  --card-bg: #fff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

section {
  padding: 80px 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: var(--light-color);
  transition: background-color 0.3s ease;
}

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

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gray-color);
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 20%;
  border-radius: 100%;
  box-shadow: var(--box-shadow);
  border: 5px solid var(--bg-primary);
}

/* About Section */
.about {
  background-color: var(--bg-primary);
}

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

.about-text {
  flex: 2;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--gray-color);
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Skills Section */
.skills {
  background-color: var(--bg-secondary);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.skill-category h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

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

.skill-name {
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.skill-bar {
  height: 12px;
  background-color: var(--light-gray);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.skill-level {
  width: 0%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(to right, #f72585 0%, #7209b7 40%, #3a0ca3 70%, #4cc9f0 100%);
  transition: width 0.5s ease;
}
/* Experience Section */
.experience {
  background-color: var(--bg-primary);
}

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

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

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  left: 0;
  margin-bottom: 30px;
}

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

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

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

.timeline-content {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.timeline-date {
  color: var(--gray-color);
  font-style: italic;
  margin-bottom: 10px;
}

/* Education Section */
.education {
  background-color: var(--bg-secondary);
}

.education-item {
  display: flex;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.education-icon {
  margin-right: 20px;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.education-content h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.education-content h4 {
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.education-date,
.education-gpa {
  color: var(--gray-color);
  margin-bottom: 5px;
}

/* Projects Section */
.projects {
  background-color: var(--bg-primary);
}

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

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.project-content {
  padding: 20px;
}

.project-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.project-content p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tags span {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-item h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  background-color: var(--bg-primary);
  color: var(--text-color);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

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

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  z-index: 999;
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-10px);
}

.scroll-to-top:hover {
  background-color: var(--secondary-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  margin-left: 20px;
}

.dark-mode-toggle:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Dark Mode Message */
.dark-mode-message {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 15px 25px;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  z-index: 1001;
  display: none;
  text-align: center;
  font-weight: bold;
}

.dark-mode-message.show {
  display: block;
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-51%);
  }

  20%,
  80% {
    transform: translateX(-49%);
  }

  30%,
  50%,
  70% {
    transform: translateX(-52%);
  }

  40%,
  60% {
    transform: translateX(-48%);
  }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 50px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

  .about-text {
    order: 2;
  }

  .about-image {
    order: 1;
    margin-bottom: 30px;
  }

  .timeline::after {
    left: 31px;
  }

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

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

  .timeline-dot {
    left: 21px;
    right: auto;
  }

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

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
  }

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

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

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

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

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

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

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

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

@media screen and (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

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

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .education-item {
    flex-direction: column;
  }

  .education-icon {
    margin-bottom: 15px;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-item i {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.btnmonk {
      padding: 8px 16px;
      background-color: #d83a3a;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
      transition: background-color 0.3s ease, transform 0.2s ease;
      font-size: 0.9em;
      border: none;
      cursor: pointer;
      display: inline-block;
    }
    
    .btnmonk:hover {
      background-color: #b73131;
      transform: translateY(-3px);
    }
    
  