/* Default (Dark Mode) Variables */
:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #7c5cff;
  --accent-2: #ff7ab6;
  --glass: rgba(255,255,255,0.04);
  --radius: 14px;
  --max-width: 1200px;

  --text-color: #e6eef8;
  --background-gradient: linear-gradient(180deg,#071025 0%, #071733 100%);
  --btn-bg: var(--glass);
  --btn-border: rgba(255,255,255,0.04);
  --btn-primary-bg: linear-gradient(90deg,var(--accent),var(--accent-2));
  --btn-primary-color: #fff;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  --card-border: rgba(255,255,255,0.04);
  --card-shadow: 0 8px 30px rgba(2,6,23,0.8);
}

/* Light Mode Overrides */
body.light {
  --bg: #ffffff;
  --card: #f9f9f9;
  --muted: #666666;
  --accent: #7c5cff;
  --accent-2: #ff7ab6;
  --glass: rgba(0, 0, 0, 0.05);

  --text-color: #222222;
  --background-gradient: linear-gradient(180deg,#f0f0f0 0%, #dcdcdc 100%);
  --btn-bg: rgba(0, 0, 0, 0.1);
  --btn-border: rgba(0,0,0,0.2);
  --btn-primary-bg: linear-gradient(90deg,var(--accent),var(--accent-2));
  --btn-primary-color: #fff;
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.1);
  --card-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Universal */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--background-gradient);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  background-image: url('./ps.jpg');
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.18);
}

  
.brand h1 {
  margin: 0;
  font-size: 16px;
}
.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Controls */
.controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-color);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  border: none;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.18);
}

.btn:hover,
.btn:focus {
  opacity: 0.9;
  outline: none;
}

/* Dark/Light Mode Toggle Button Specific */
/* Horizontal toggle switch */
#modeToggle {
  width: 120px;
  height: 60px;
  background: var(--btn-bg);
  border-radius: 34px;
  cursor: pointer;
  position: relative;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  outline: none;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
}

.switch-track {
  width: 100%;
  height: 36px;
  border-radius: 34px;
  position: relative;
  background: linear-gradient(to right, #f0f0f0 50%, #121212 50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
}

.icon {
  font-size: 26px;
  width: 40px;
  text-align: center;
  pointer-events: none;
  user-select: none;
  color: #999;
  transition: color 0.3s ease;
}

/* Highlight active icon */
.mode-switch.light .icon.sun {
  color: #ffdd33; /* bright yellow */
}
.mode-switch.light .icon.moon {
  color: #999;
}
.mode-switch.dark .icon.moon {
  color: #aabbee; /* soft moonlight blue */
}
.mode-switch.dark .icon.sun {
  color: #999;
}

.switch-thumb {
  width: 48px;
  height: 38px;
  background: white;
  border-radius: 40%;
  position: absolute;
  top: -1px;
  left: 0px; /* start at left for light mode */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: left 0.4s ease, background-color 0.3s ease;
  will-change: left;
}

/* When dark mode active, move thumb right */
.mode-switch.dark .switch-thumb {
  left: calc(100% - 48px); /* 4px padding + 52px thumb width */
  background: #222;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 28px;
  align-items: center;
  margin-bottom: 58px;
}
.hero-left {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 36px;
  margin: 0 0 14px 0;
  line-height: 1.05;
}
.hero-sub {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 15px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tag {
  background: rgba(255,255,255,0.03);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 12px;
}
.hero-cta {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  background: var(--btn-primary-bg);
  border: none;
  color: var(--btn-primary-color);
  cursor: pointer;
}
.hero-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
}

/* Hero right card */
.profile-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background-image: url('./p.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-name {
  font-weight: 700;
  font-size: 18px;
}
.profile-role {
  color: var(--muted);
  font-size: 13px;
  position: center;
}

.des-image{
  width: 400px;
  height: 200px;
  border-radius: 4%;
  opacity: 60%;
  align-items: center;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
	
	
}

/* Stats */
.stats {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.stat {
  flex: 1;
  background: rgba(255,255,255,0.02);
  padding: 10px;
  border-radius: 12px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 16px;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}

/* Features */
.features {
  border: 1px solid rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.card {
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 16px;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(2,6,23,0.6);
}
.card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}


/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}

/* CTA banner */
.cta-banner {
  margin: 30px 0;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(124,92,255,0.12), rgba(255,122,182,0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-text h3 {
  margin: 0 0 6px 0;
}
.cta-text p {
  margin: 0;
  color: var(--muted);
}
.cta-actions {
  display: flex;
  gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .controls {
    width: 100%;
    justify-content: space-between;
  }
  body {
    padding: 20px 10px;
  }
  .wrap {
    padding: 16px;
  }
  h1, .hero-title {
    font-size: 24px;
  }
  .brand h1 {
    font-size: 14px;
  }
  .profile-name {
    font-size: 16px;
  }
}


/* Small helper for edit mode */
.editing {
  outline: 2px dashed rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 6px;
}

.footer {
  text-align: center;
  padding: 10px;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-size: 14px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  
}

.github-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 6px;
}
