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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #fff;
  line-height: 1.7;
  font-size: 18px;
  scroll-behavior: smooth;
  background: #000;
  overflow-x: hidden;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("bg.jpg") center/cover no-repeat;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0.95) 100%
  );
  opacity: var(--overlay-opacity, 0);
  transition: opacity 0.3s linear;
  z-index: -2;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
  margin-top: -30vh;
  margin-bottom: 30vh;
  margin-left: 0;
}

.hero-box {
  background: #000;
  padding: 40px 50px;
  border: 1px solid #333;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.hero h1 {
  font-size: 4.2rem;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  color: #ddd;
  font-size: 1.4rem;
  font-weight: 400;
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

button, .btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  font-family: 'Inter', sans-serif;
}

button:hover, .btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

section {
  padding: 90px 20px;
  max-width: 1100px;
  margin: auto;
  border-bottom: 1px solid #222;
  background: rgba(0,0,0,0.85);
  position: relative;
  z-index: 1;
}

section h2 {
  margin-bottom: 28px;
  font-size: 2.6rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.02em;
}

section p {
  color: #ccc;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.8;
}

.about p {
  max-width: 900px;
  margin: auto;
  font-size: 1.2rem;
}

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

.card {
  border: 1px solid #333;
  padding: 28px;
  background: #050505;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #777;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.05);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.card p {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.6;
  text-align: left;
}

.card a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.card a:hover {
  color: #ccc;
}

.skills-category {
  margin-bottom: 36px;
}

.skills-category h3 {
  margin-bottom: 16px;
  color: #ddd;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 500;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill {
  border: 1px solid #333;
  padding: 10px 16px;
  font-size: 0.95rem;
  background: #050505;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 400;
}

.skill:hover {
  border-color: #888;
  transform: translateY(-3px);
  background: #0a0a0a;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.contact-buttons .btn {
  min-width: 180px;
}

footer {
  text-align: center;
  padding: 20px;
  color: #666;
  background: #000;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  position: relative;
  z-index: 1;
}

footer a {
  color: #888;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero {
    margin-top: -15vh;
    margin-bottom: 15vh;
    margin-left: 0;
  }
  
  .hero h1 { 
    font-size: 2.8rem; 
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section h2 { 
    font-size: 2rem; 
  }
  
  .hero-box { 
    padding: 25px 20px;
    border-radius: 12px;
    margin: 0 10px;
  }
  
  section {
    padding: 50px 15px;
  }
  
  .hero-buttons {
    margin-top: 24px;
    gap: 10px;
  }
  
  button, .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .projects {
    grid-template-columns: 1fr;
  }
  
  .contact-buttons {
    gap: 10px;
  }
  
  .contact-buttons .btn {
    min-width: 140px;
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}