/* Reset */
* {
  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;
  background-color: #fdfdfd;
  color: #333;
}

/* Container */
.main-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo a {
  font-size: 2rem;
  font-weight: bold;
  color: #4ecdc4;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #4ecdc4;
}

.btn {
  padding: 10px 20px;
  background-color: #4ecdc4;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

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

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px;
}

/* Hero Section */
#hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  flex-wrap: wrap;
}

.hero-left {
  flex: 1;
  min-width: 300px;
}

.hero-left h3 {
  font-size: 1.2rem;
  color: #888;
}

.hero-left h1 {
  font-size: 2.5rem;
  margin: 15px 0;
}

.hero-left span {
  color: #4ecdc4;
}

.hero-left p {
  max-width: 500px;
}

/* Services */
.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

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

.service,
.portfolio,
.skill-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service:hover,
.portfolio:hover,
.skill-item:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2rem;
  color: #4ecdc4;
  margin-bottom: 10px;
}

/* Portfolio */
.portfolio-cover {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.portfolio-info .portfolio-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-link {
  color: #4ecdc4;
  font-size: 1rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.portfolio-tags div {
  background: #4ecdc4;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.skill-bar {
  background: #eee;
  height: 8px;
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 8px;
  background: #4ecdc4;
}

/* Contact */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: #4ecdc4;
  margin-right: 15px;
}

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

input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  resize: vertical;
  height: 100px;
}

.btn-submit {
  background-color: #4ecdc4;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #3bbcb0;
}

/* Footer */
footer {
  background-color: #f0f0f0;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.social-links a {
  margin: 0 10px;
  color: #4ecdc4;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #333;
}

/* Fade-in effect (optional) */
.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav ul {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .burger {
    display: block;
  }

  #nav-menu.active {
    display: flex;
  }

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