:root {
  --primary-color: #2d3436;
  --secondary-color: #0984e3;
  --accent-color: #00b894;
  --text-color: #2d3436;
  --light-bg: #f5f6fa;
  --white: #ffffff;
  --gray: #636e72;
  --light-gray: #b2bec3;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #d63031;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  header {
    background-color: transparent;
    box-shadow: none;
  }
  
  header.menu-open {
    background-color: var(--white);
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem;
  transition: all 0.3s ease;
}

nav ul li {
  margin: 0 1.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1001;
  }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--white);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 4rem 1rem;
        box-shadow: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
    }

    nav ul.active {
        opacity: 1;
        pointer-events: auto;
    }

  nav ul li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 1rem;
    font-size: 1.2rem;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  text-align: center;
  padding: 0 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none"/><path d="M0 0L60 60M60 0L0 60" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  opacity: 0.1;
}

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

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

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Sections Common */
section {
  padding: 5rem 2rem;
}

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

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

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.personal-info {
  text-align: left;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.personal-info p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.experience {
  margin-bottom: 2rem;
}

.job {
  background-color: var(--white);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.job.featured {
  border-left: 4px solid var(--accent-color);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tech-stack,
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag,
.tool-tag {
  background-color: var(--light-bg);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.tech-tag:hover,
.tool-tag:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.job-group {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.job-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--light-bg);
}

.toggle-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.previous-jobs {
  display: none;
}

.job-group.collapsed .previous-jobs {
  display: block;
}

.job h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.job .period {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.job ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.job ul li {
  margin: 0.5rem 0;
}

.education {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.education ul {
  list-style-type: none;
  padding: 0;
}

.education ul li {
  margin: 1rem 0;
  font-size: 1.1rem;
}

/* Skills Section */
.skills-grid {
  max-width: 1000px;
  margin: 0 auto;
}

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

.skill-category {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-bars {
  margin-top: 1.5rem;
}

.skill-bar {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.percentage {
  color: var(--secondary-color);
}

.progress-line {
  position: relative;
  height: 10px;
  background: var(--light-bg);
  border-radius: 5px;
  transform-origin: left;
  transform: scaleX(0);
  animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

.progress-line span {
  position: absolute;
  height: 100%;
  border-radius: 5px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--secondary-color);
  animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

.progress-line span.c-sharp {
  width: 95%;
}
.progress-line span.angular {
  width: 90%;
}
.progress-line span.sql {
  width: 95%;
}
.progress-line span.html-css {
  width: 85%;
}
.progress-line span.javascript {
  width: 90%;
}
.progress-line span.apis {
  width: 95%;
}

@keyframes animate {
  100% {
    transform: scaleX(1);
  }
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-category h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.skill-category ul li {
  margin: 1rem 0;
  display: flex;
  align-items: center;
}

.skill-category ul li i {
  margin-right: 1rem;
  color: var(--accent-color);
}

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

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

.project-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-out;
}

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

.project-description {
  color: var(--gray);
  font-size: 1.1rem;
  margin: 1rem 0;
  font-style: italic;
}

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

@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr;
  }
}

.project-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.project-card ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.project-card ul li {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.languages,
.preferences {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.languages ul,
.preferences ul {
  list-style-type: none;
  padding: 0;
}

.languages ul li,
.preferences ul li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.languages h3,
.preferences h3,
.skill-category h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Contact Section */
/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--light-bg);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link i {
  font-size: 1.2rem;
}

/* Contact Form */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.contact-text {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-text h3 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-text p {
  color: var(--gray);
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--light-bg);
  border-radius: 8px;
  font-size: 1rem;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

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

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

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

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

/* Form placeholder styling */
::placeholder {
  color: var(--light-gray);
}

/* Form validation styling */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: var(--light-bg);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: var(--success);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .projects-grid,
  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 1.5rem;
    line-height: 1.6;
  }

  section {
    padding: 4rem 1.5rem;
  }

  section h2 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
  }

  .job,
  .project-card {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .tech-stack,
  .project-tech {
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-start;
  }

  .contact-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem;
    font-size: 16px;
    border-radius: 6px;
    -webkit-appearance: none;
    appearance: none;
  }

  .projects-grid,
  .skills-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .skill-category {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .tech-stack,
  .project-tech,
  .skill-cloud {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .social-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin: 1.5rem;
  }

  .social-link {
    width: auto;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .submit-btn {
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
  }

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

  .contact-form {
    gap: 1rem;
  }

  section {
    padding: 3rem 1rem;
  }
}
