:root {
  --primary: #9e4e4e;
  --secondary: #3e1616;
  --accent: #ff6b6b;
  --text: #333333;
  --light: #f8f9fa;
  --highlight: #0f3460;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

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

header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
}

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

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

.hero {
  padding: 180px 0 100px;
  text-align: center;
  background: linear-gradient(to bottom, white 0%, #f5f7ff 100%);
}

.hero h1 {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.1;
}

.hero h2 {
  font-size: 24px;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 30px;
  opacity: 0.8;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--text);
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--primary);
  font-size: 16px;
  margin: 5px;
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--accent);
  bottom: -10px;
  left: 0;
}

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

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 32px;
  margin-bottom: 25px;
  color: var(--primary);
  font-weight: 700;
}

.about-text p {
  margin-bottom: 25px;
  font-size: 18px;
  line-height: 1.7;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-item i {
  width: 40px;
  height: 40px;
  background-color: rgba(26, 26, 46, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--primary);
}

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

.skills-section .section-title {
  color: white;
}

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

.skill-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
  font-size: 22px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}

.skill-category h3 i {
  margin-right: 10px;
}

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

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8e8e);
  border-radius: 3px;
}

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

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

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

.project-image {
  width: auto;
  height: auto;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary);
}

.project-content p {
  color: var(--text);
  margin-bottom: 20px;
  opacity: 0.8;
}

.contact-section {
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.contact-section .section-title {
  color: white;
}

.contact-section .section-title:after {
  background: var(--accent);
}

.contact-section p {
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: all 0.3s;
}

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

footer {
  background-color: var(--secondary);
  color: white;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 56px;
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 150px 0 80px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 20px;
  }

  .section-title {
    font-size: 36px;
  }

  .nav-links {
    display: none;
  }
}

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

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

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