:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-bg: #f9f9f9;
  --dark-bg: #2c3e50;
  --text-light: #f9f9f9;
  --text-dark: #333;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  padding: 0px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/api/placeholder/1200/600') center/cover;
  opacity: 0.15;
  z-index: 0;
}

header .container {
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tech-icons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  transition: transform 0.3s;
}

.tech-icon:hover {
  transform: translateY(-5px);
}

.tech-icon i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tech-icon span {
  font-size: 0.9rem;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 80px;
}

.section:nth-child(even) {
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 25%;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 2rem;
}

.card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.card h3 i {
  margin-right: 0.8rem;
  color: var(--primary-color);
}

.card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  background: var(--light-bg);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project {
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.project-img {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.project-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.project-img:hover img {
  transform: scale(1.03);
}

.project-img::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  top: 15px;
  left: 15px;
  z-index: -1;
}

.project-content {
  flex: 1;
  padding: 2rem;
  min-width: 300px;
}

.project-content h3 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.project-content p {
  margin-bottom: 1.5rem;
  color: #555;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 3rem 0;
  text-align: center;
}

footer p {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  gap: 2rem;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-link i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  .project {
    flex-direction: column !important;
  }

  .project-content, .project-img {
    width: 100%;
  }

  .project-img::before {
    display: none;
  }
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-box {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.skill-box:hover {
  transform: translateY(-5px);
}

.skill-box h3 {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.skill-box h3 i {
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.skill-box ul {
  list-style: none;
}

.skill-box li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.skill-box li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}
