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

body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top left, #151b2b, #050710);
  color: #f5f5f5;
  min-height: 100vh;
}

/* Top nav */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
}

.top-nav nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #d8d8d8;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.top-nav nav a:hover {
  color: #4ca8ff;
}

/* Social bar */
.social-bar {
  position: fixed;
  top: 45%;
  left: 12px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
}

.social-bar a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #2a2f3d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.social-bar a:hover {
  background: #4ca8ff;
  transform: translateX(3px);
}

/* Sections */
main {
  padding-top: 80px;
}

.section {
  padding: 80px 10% 40px;
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  border-bottom: 2px solid #4ca8ff;
  display: inline-block;
}

.section-subtitle {
  margin-top: 10px;
  margin-bottom: 28px;
  color: #b5b5b5;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 110px 10% 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-tag {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ca3af;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin: 15px 0;
}

.hero h1 span {
  color: #4ca8ff;
}

.hero-sub {
  max-width: 480px;
  color: #c7c7c7;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, #4ca8ff, #111827);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Buttons */
.btn-primary,
.btn-outline {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, #4ca8ff, #3b82f6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #4ca8ff;
  color: #e5e7eb;
}

.btn-outline:hover {
  background: #4ca8ff;
}

.btn-small {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.8rem;
  cursor: pointer;
  background: #4ca8ff;
  color: #fff;
}

.btn-small.ghost {
  background: transparent;
  border: 1px solid #4ca8ff;
}

/* About */
.about p {
  margin-bottom: 16px;
  color: #d4d4d4;
  max-width: 800px;
}

/* Portfolio cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(145deg, #1d2536, #101522);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.card-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 12px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: #d4d4d4;
  margin-bottom: 14px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.skill-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #1f2937;
  border: 1px solid #4b5563;
  font-size: 0.85rem;
}

/* Contact */
.contact-form {
  max-width: 520px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border-radius: 8px;
  border: 1px solid #4b5563;
  padding: 10px 12px;
  color: #e5e7eb;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b7280;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0 20px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .top-nav {
    padding: 0 5%;
  }

  .section {
    padding: 70px 6% 30px;
  }

  .social-bar {
    display: none;
  }
}
