/* =========================================
   SHARED STYLESHEET — gayanweerasingha.org
   Slate Dark Theme
   ========================================= */

:root {
  --bg:           #0e1520;
  --bg-alt:       #121c2c;
  --surface:      #162034;
  --surface-h:    #1c2840;
  --text:         #e8eef8;
  --text-mid:     #8fa3c0;
  --text-light:   #4a6080;
  --accent:       #4d9fff;
  --accent-bg:    #0e1e36;
  --border:       #1e2e44;
  --nav-bg:       rgba(14,21,32,0.95);
  /* legacy aliases used by sub-pages */
  --primary:      #e8eef8;
  --muted:        #8fa3c0;
}

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

body {
  font-family: 'DM Sans', Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 60px; /* offset for fixed nav */
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-initials {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border);
}

.nav-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-resume {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 3px;
  font-family: 'Sora', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-resume:hover { opacity: 0.88; color: #fff !important; }

/* ---- HERO ---- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  background: var(--bg);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 48px 20px 72px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.05s forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: none; }
}

.hero-tag {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.hero-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.hero-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 420px;
  margin-bottom: 18px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 26px;
  border-radius: 3px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-block;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 11px 24px;
  border-radius: 3px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-socials {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.hero-socials a {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.hero-socials a:hover { color: var(--accent); }

.hero-right {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: heroPhotoIn 1.2s ease 0.05s forwards;
}

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

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.92) contrast(1.05);
  display: block;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 15%);
  z-index: 2;
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(#1e2e4440 1px, transparent 1px),
    linear-gradient(90deg, #1e2e4440 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-stats {
  position: absolute;
  bottom: 200px;
  left: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateX(-10px);
  animation: statFadeIn 1s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}

@keyframes statFadeIn {
  to { opacity: 1; transform: none; }
}

.stat-chip {
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat-n {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

.stat-l {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-mid);
}

/* ---- SECTION WRAPPER ---- */
.section-wrap {
  padding: 100px 80px;
}

.section-wrap-alt {
  background: var(--bg-alt);
  padding: 100px 80px;
}

.section-wrap-sm {
  padding: 80px 80px;
}

.section-wrap-alt-sm {
  background: var(--bg-alt);
  padding: 80px 80px;
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--text);
  margin-bottom: 56px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---- ABOUT ---- */
#about p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  text-align: justify;
}

/* ---- SKILLS ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-group:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-group h3 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.skill-item span {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-mid);
}

/* ---- EXPERIENCE ---- */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.exp-card {
  border-top: 2px solid var(--border);
  padding-top: 24px;
}

.exp-card.first {
  border-top-color: var(--accent);
}

.exp-period {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.exp-role {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.exp-company {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.exp-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---- PROJECTS ---- */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.projects-header .section-title {
  margin-bottom: 0;
}

.projects-view-all {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-bottom: 6px;
  transition: opacity 0.2s;
}

.projects-view-all:hover { opacity: 0.75; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card .proj-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.project-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.proj-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.proj-tag {
  background: var(--accent-bg);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- ARTICLES GRID ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 28px 24px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.article-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.article-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
}

.article-read-more {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
}

.external-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
  margin-top: 12px;
  font-family: 'DM Sans', sans-serif;
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.service-item {
  border-left: 2px solid var(--border);
  padding-left: 24px;
  transition: border-color 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: none;
  border-top: 2px solid var(--border);
  padding-left: 0;
  padding-top: 20px;
}

.service-item:hover { border-top-color: var(--accent); }

.service-item h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-item p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  text-align: center;
}

.service-item h3 {
  text-align: center;
}

.services-cta-banner {
  background: var(--accent-bg);
  border-radius: 6px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.services-cta-banner h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.services-cta-banner p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-mid);
}

/* ---- EDUCATION ---- */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.edu-card:hover { border-color: var(--accent); }

.edu-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 3px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0;
}

.edu-body h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.edu-body .edu-school {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}

.edu-body .edu-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-light);
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.contact-left > p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 44px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-link-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 72px;
  flex-shrink: 0;
}

.contact-link-row a {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link-row a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button,
.contact-form .btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.contact-form button:hover,
.contact-form .btn:hover { opacity: 0.85; }

.form-success {
  display: none;
  align-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.form-error {
  display: none;
  align-items: center;
  background: #1a0a0a;
  color: #ff8080;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  border: 1px solid #3a1a1a;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-light);
}

footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent); }

/* ---- SCROLL TO TOP ---- */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  z-index: 1000;
  transition: opacity 0.2s;
}

#scrollTopBtn:hover { opacity: 0.85; }

/* ---- BUTTONS (generic) ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.3rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover { background: var(--accent); color: white; opacity: 1; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.back-btn:hover { opacity: 0.85; }

/* ---- INNER PAGE HEADER ---- */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 2.5rem 1rem;
  text-align: center;
}

.page-header h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text);
}

.page-header p {
  color: var(--text-mid);
  margin-top: 0.4rem;
  font-family: 'DM Sans', sans-serif;
}

/* ---- DETAIL PAGES ---- */
.detail-main {
  max-width: 800px;
  margin: auto;
  padding: 3rem 1rem;
}

.detail-main h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.detail-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-family: 'DM Sans', sans-serif;
}

.detail-main p {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.detail-main h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 1rem;
  font-size: 1.2rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.image-gallery img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

/* ---- ARTICLES / PROJECTS LIST PAGES ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.8rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.card p { color: var(--text-mid); font-size: 0.95rem; }
.muted { color: var(--text-mid); font-size: 0.9rem; }

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

/* ---- DOWNLOADS PAGE ---- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.dl-card:hover { border-color: var(--accent); }

.dl-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.dl-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.dl-card p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dl-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.dl-meta span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* ---- GUIDE / CTA SECTION ---- */
.guide-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.guide-section > div {
  max-width: 1000px;
  margin: auto;
  padding: 3.5rem 1rem;
}

.guide-section h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
}

.guide-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

.guide-subtitle {
  color: var(--text-mid);
  font-size: 0.97rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  font-family: 'DM Sans', sans-serif;
}

.guide-features {
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.guide-features li {
  color: var(--text-mid);
  font-size: 0.93rem;
  padding-left: 1.4rem;
  position: relative;
  font-family: 'DM Sans', sans-serif;
}

.guide-features li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.guide-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.guide-price {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

/* ---- ADMIN PANEL (keep separate) ---- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: #0d1117;
  border-right: 1px solid #21262d;
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1.2rem;
  background: none;
  border: none;
  color: #8b949e;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-btn:hover { background: #161b22; color: #c9d1d9; }
.sidebar-btn.active { background: #1f6feb22; color: #58a6ff; border-right: 2px solid #58a6ff; }

.admin-content { flex: 1; padding: 2rem; min-width: 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .experience-grid { grid-template-columns: 1fr 1fr; }
  .section-wrap, .section-wrap-alt { padding: 70px 40px; }
  .section-wrap-sm, .section-wrap-alt-sm { padding: 60px 40px; }
  footer { padding: 24px 40px; }
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    padding: 48px 24px 40px;
  }
  .hero-right {
    height: 300px;
  }
  .hero-stats { display: none; }
  .hero-desc { max-width: 100%; }
  .projects-grid { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-cta-banner { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 28px; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .projects-header .section-title { margin-bottom: 0; }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-resume) { display: none; }
  .section-wrap, .section-wrap-alt { padding: 60px 20px; }
  .section-wrap-sm, .section-wrap-alt-sm { padding: 50px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
  #scrollTopBtn { bottom: 20px; right: 20px; }
  .services-cta-banner { padding: 24px 20px; }
}

@media (max-width: 420px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 36px; }
}
