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

body {
  background: #f7f7f7;
  color: #222;
  min-height: 100vh;
}

/* Buttons */
.btn {
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.secondary {
  background: #e5e7eb;
  color: #111;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.feature {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.feature h3 {
  margin-bottom: 10px;
}

/* Auth & Forms */
.auth-container,
.form-container,
.dashboard,
.portfolio-preview {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* Portfolio Preview */
.portfolio-preview h1 {
  margin-bottom: 5px;
}

.portfolio-preview h3 {
  margin-bottom: 20px;
  color: #555;
}

.portfolio-preview h4 {
  margin-top: 25px;
  margin-bottom: 8px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
}

/* Portfolio Card */
.portfolio-card {
  max-width: 700px;
  margin: 50px auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-header img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #2563eb;
}

.profile-header h1 {
  font-size: 1.8rem;
}

.profile-header h3 {
  color: #555;
  font-weight: 500;
}

/* Sections */
.section {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 14px;
}

.about {
  background: #f0f6ff;
}

.skills {
  background: #f9fafb;
}

.contact {
  background: #fef3f2;
}

/* Skills */
#skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.skill-badge img {
  width: 20px;
  height: 20px;
}

/* Button */
.back-btn {
  margin-top: 20px;
  background: #2563eb;
}

.item-card {
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  margin-top: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.item-card h5 {
  margin-bottom: 4px;
}

/* Dashboard */
.dashboard-card {
  max-width: 500px;
  margin: 80px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.dashboard-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563eb;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 18px; /* MORE SPACE */
}

.secondary-btn {
  background: #e5e7eb;
  color: #111;
}

.danger-btn {
  background: #ef4444;
}

.portfolio-thumb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}


.portfolio-card{
    button {
        margin: 0%;
        background-color: #3bb0e3;
        color: white;
        padding: 8px 15px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
    }
}

.share-container {
  position: relative;
  margin-top: 20px;
}

.share-options {
  position: absolute;
  top: 45px;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.share-options button {
  padding: 8px 12px;
  cursor: pointer;
}

.hidden {
  display: none;
}
.portfolio-card {
  page-break-inside: avoid;
}

.section {
  page-break-inside: avoid;
}

.item-card {
  page-break-inside: avoid;
}

.portfolio-card {
  overflow: visible !important;
}

.section {
  page-break-inside: avoid;
}
