* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.navbar a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 1rem;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.navbar a:hover {
  color: red;
  border-bottom-color: red;
}

.navbar a.active {
  color: red;
  font-weight: 600;
  border-bottom-color: rgb(179, 25, 25);
}

.navbar .btn-contact {
  background-color: red;
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border-bottom: none;
}

.navbar .btn-contact:hover {
  background-color: white;
}

.content {
  max-width: 1100px;
  margin: 100px auto 0 auto;
  padding: 2rem 3rem;
}

.container {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

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

.skills-card {
  background: #f4f4f5;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.hero {
  text-align: center;
  padding: 4rem 1rem 3rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.hero .highlight {
  color: red;
}

.hero p {
  font-size: 1.2rem;
  color: #555555;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: red;
  color: white;
}

.btn-primary:hover {
  background-color: rgb(179, 25, 25);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #e9ecef;
  color: #1a1a1a;
}

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

.featured-projects {
  padding: 3rem 0;
}

.featured-projects h2 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
}

.projects-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.projects-card {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.projects-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.projects-card h3 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}

.projects-card p {
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.projects-card a {
  color: red;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.projects-card a:hover {
  color: rgb(179, 25, 25);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #555555;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.projects-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  margin-bottom: 2.5rem;
}

.projects-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-img {
  width: 100%;
  height: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.projects-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects-info h2 {
  font-size: 1.6rem;
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}

.projects-info p {
  color: #555555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.projects-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: red;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.projects-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tag {
  background-color: #e9ecef;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.projects-features {
  margin: 1rem 0 1.5rem 1.2rem;
  color: #555;
  font-size: 0.95rem;
}

.projects-features li {
  margin-bottom: 0.4rem;
}

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

@media (max-width: 768px) {
  .projects-detail {
    grid-template-columns: 1fr;
  }
  .projects-links .btn {
    width: 100%;
    text-align: center;
  }
}

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

.subtitle {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0.5rem auto 0 auto;
}

.separator {
  border: 0;
  height: 1px;
  background: #e0e0e0;
  margin: 2.5rem 0;
}

.about-grid {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.about-text {
  flex: 2;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-card {
  flex: 1;
  min-width: 250px;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skills-section {
  margin-top: 3rem;
}

.skills-section h2,
.goals-section h2 {
  margin-bottom: 1.5rem;
}

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

.skill-box {
  border: 1px solid #e5e5e5;
  padding: 1.5rem;
  border-radius: 8px;
}

.skill-title {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.skill-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-box li {
  padding: 0.4rem 0;
  border-bottom: 1px inherit #f0f0f0;
  font-size: 0.95rem;
  color: #666;
}

.skill-box li::before {
  content: "✔️ ";
  color: #e74c3c;
}

.goals-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: #f4f6f8;
  border-radius: 8px;
}

.highlight {
  color: #e74c3c;
  font-weight: bold;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
}

.service-card li {
  font-size: 0.85rem;
  color: #555;
  padding: 0.3rem 0;
}

.service-card li::before {
  content: "• ";
  color: #e74c3c;
  font-weight: bold;
}

.services-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.services-cta h2 {
  margin-bottom: 0.5rem;
}

.services-cta p {
  color: #666;
  margin-bottom: 1.5rem;
}

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

.contact-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.info-item {
  margin-bottom: 1.2rem;
}

.info-item strong {
  display: block;
  color: #333;
  margin-bottom: 0.2rem;
}

.info-item a {
  color: #e74c3c;
  text-decoration: none;
}

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

.social-links a {
  background-color: #fff;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: bold;
}

.contact-form {
  flex: 1.5;
  min-height: 300px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 2rem;
  border-radius: 8px;
}

.contact-form h2 {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  color: #333;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e74c3c;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cv-layout {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.cv-sidebar {
  flex: 1;
  min-width: 260px;
  background-color: #f9f9f9;
  padding: 1.8rem;
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
  height: fit-content;
}

.cv-main {
  flex: 2;
  min-width: 300px;
}

.cv-block {
  margin-bottom: 2rem;
}

.cv-block h2 {
  font-size: 1.25rem;
  color: #333;
  border-bottom: 2px solid #e74c3c;
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

.cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: #444;
  border-bottom: 1px dashed #e0e0e0;
}

.cv-list li:last-child {
  border-bottom: none;
}

.cv-item {
  margin-bottom: 1.8rem;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-item-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #222;
}

.cv-date {
  font-size: 0.85rem;
  font-weight: bold;
  color: #e74c3c;
  background-color: #fdf2f2;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.cv-subtitle {
  font-style: italic;
  color: #666;
  margin: 0.3rem 0 0.6rem 0;
  font-size: 0.95rem;
}

.cv-item-list {
  padding-left: 1.2rem;
  margin: 0;
}

.cv-item-list li {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
}
