/* ═══════════════════════════════════════════════════
   RESET & ROOT VARIABLES
═══════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — matches tejasmane.in dark theme exactly */
  --bg-primary:        #1e1f24;
  --bg-secondary:      #252528;
  --bg-card:           #2b2c2f;
  --bg-card-hover:     #313236;
  --border-color:      #383a3e;
  --accent:            #d4a843;   /* golden yellow */
  --accent-light:      #f0c060;
  --text-white:        #f0f0f0;
  --text-light:        #c8c8c8;
  --text-muted:        #888;
  --shadow:            0 4px 24px rgba(0,0,0,0.35);
  --shadow-sm:         0 2px 10px rgba(0,0,0,0.25);
  --radius-sm:         8px;
  --radius-md:         14px;
  --radius-lg:         20px;
  --transition:        0.25s ease;

  /* Typography */
  --font-main: 'Poppins', sans-serif;
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px 60px;
  gap: 28px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-main); border: none; background: none; }
address { font-style: normal; }

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY HELPERS
═══════════════════════════════════════════════════ */
.h2 { font-size: 1.6rem; font-weight: var(--fw-700); color: var(--text-white); letter-spacing: -0.02em; }
.h3 { font-size: 1.15rem; font-weight: var(--fw-600); color: var(--text-white); }
.h4 { font-size: 0.95rem; font-weight: var(--fw-600); color: var(--text-white); }
.article-title { position: relative; padding-bottom: 14px; margin-bottom: 28px; }
.article-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 38px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 40px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

/* Show Contacts button */
.info_more-btn {
  display: none; /* hidden on desktop */
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: var(--fw-500);
  transition: background var(--transition);
  margin-top: 4px;
}
.info_more-btn:hover { background: var(--bg-card-hover); }
.info_more-btn ion-icon { font-size: 1rem; transition: transform var(--transition); }
.info_more-btn.active ion-icon { transform: rotate(180deg); }

/* Separator */
.separator {
  height: 1px;
  background: var(--border-color);
  margin: 18px 0;
}

/* Profile Name */
.name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
  text-align: center;
}

/* DevOps Badge */
.title {
  display: inline-block;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  text-align: center;
}
/* Contacts list */
.contacts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-item .icon-box {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info { flex: 1; min-width: 0; }
.contact-title {
  font-size: 0.68rem;
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-link, .contact-info time, .contact-info address {
  font-size: 0.82rem;
  color: var(--text-light);
  word-break: break-word;
}
.contact-link { color: var(--text-white); }
.contact-link:hover { color: var(--accent); }

/* Social */
.social-list {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-link {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(212,168,67,0.08);
}

/* ═══════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════ */
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Navbar ─── */
.navbar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 8px;
  margin-bottom: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.navbar-link {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: var(--fw-500);
  color: var(--text-light);
  transition: color var(--transition), background var(--transition);
}
.navbar-link:hover { color: var(--text-white); background: var(--bg-card); }
.navbar-link.active { color: var(--accent); }

le: none;
  padding: 5px;
  margin: 0;
}

/* Links */
.nav-list li a {
  text-decoration: none;
  color: #aaa;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  transition: 0.3s ease;
}

/* Hover */
.nav-list li a:hover {
  color: #fff;
  background: #2a2a2a;
}

/* Active tab (IMPORTANT) */
.nav-list li a.active {
  background: #2a2a2a;
  color: #fff;
}

/* Navbar container (top-right floating) */
.top-navbar {
  position: absolute;
  top: 0;
  right: 0;
  background: #2a2a2a;
  padding: 12px 18px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Nav list */
.top-navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links */
.top-navbar ul li a {
  text-decoration: none;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

/* Hover */
.top-navbar ul li a:hover {
  color: #fff;
}

/* Active link */
.top-navbar ul li a.active {
  color: #f5c542; /* yellow highlight like reference */
} 

/* ─── Articles (pages) ─── */
article {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: none;
}
article.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════ */
.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.8;
}
.about-text strong { color: var(--text-white); font-weight: var(--fw-500); }
 
/* Service (What I'm Doing) */
.service-title { margin-bottom: 20px; }
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
}
.service-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.service-icon-box {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.service-icon-box img {
  width: 36px; height: 36px;
  filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(0.9);
}

.service-item-title { margin-bottom: 6px; font-size: 0.9rem; }
.service-item-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }

/* Certifications */
.certifications { margin-top: 40px; }
.certifications-title { margin-bottom: 20px; }

.cert-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--border-color);
}
.cert-scroll-wrapper::-webkit-scrollbar { height: 4px; }
.cert-scroll-wrapper::-webkit-scrollbar-track { background: var(--border-color); border-radius: 2px; }
.cert-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.cert-list {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 6px 4px;
  min-width: max-content;
}
.cert-item img {
  width: 110px; height: 110px;
  object-fit: contain;
  transition: transform var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.cert-item:hover img { transform: scale(1.06); }

/* ═══════════════════════════════════════════════════
   CAREER PAGE
═══════════════════════════════════════════════════ */
.timeline { margin-bottom: 36px; }

.title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.title-wrapper .icon-box {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.05rem;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border-color);
  padding-left: 24px;
  margin-left: 6px;
}

.timeline-item {
  position: relative;
  padding: 4px 0 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item-title {
  font-size: 0.95rem;
  font-weight: var(--fw-600);
  color: var(--text-white);
  margin-bottom: 4px;
}
.timeline-date {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: var(--fw-500);
  margin-bottom: 2px;
}
.timeline-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Skills section */
.skills { margin-top: 8px; }
.skills-title { margin-bottom: 24px; }

.skills-group { margin-bottom: 30px; }
.skills-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent);
}
.skills-group-header ion-icon { font-size: 1.15rem; }
.skills-group-header h4 { font-size: 0.95rem; color: var(--text-white); }

.skills-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.skill-info data { color: var(--text-muted); font-size: 0.78rem; }

.skill-progress-bg {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}
.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  animation: barGrow 1s ease forwards;
}
@keyframes barGrow { from { width: 0 !important; } }

/* ═══════════════════════════════════════════════════
   PORTFOLIO PAGE
═══════════════════════════════════════════════════ */
.filter-list {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: var(--fw-500);
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.filter-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(212,168,67,0.06); }
.filter-btn.active {
  color: var(--accent);
  border-color: transparent;
  background: transparent;
}

.project-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-item {
  display: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-item.active { display: block; }
.project-item a { display: block; }
.project-item:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }

.project-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-card);
  margin: 0;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-item:hover .project-img img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(212,168,67,0.18);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-overlay ion-icon { font-size: 1.8rem; color: #fff; }
.project-item:hover .project-overlay { opacity: 1; }

.project-meta {
  background: var(--bg-card);
  padding: 14px 14px 16px;
}
.project-title {
  font-size: 0.88rem;
  font-weight: var(--fw-600);
  color: var(--text-white);
  margin-bottom: 4px;
}
.project-category {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   BLOG PAGE
═══════════════════════════════════════════════════ */
.blog-posts-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.blog-post-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.blog-post-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.blog-banner-box {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0;
  background: var(--bg-card-hover);
}
.blog-banner-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-post-item:hover .blog-banner-box img { transform: scale(1.04); }

.blog-content { padding: 16px 16px 18px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.75rem;
}
.blog-category {
  color: var(--accent);
  font-weight: var(--fw-500);
}
.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.blog-meta time { color: var(--text-muted); }

.blog-item-title {
  font-size: 0.9rem;
  font-weight: var(--fw-600);
  color: var(--text-white);
  line-height: 1.4;
  margin-bottom: 8px;
}
.blog-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════ */
.mapbox {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
}
.mapbox figure { height: 260px; }
.mapbox iframe {
  width: 100%; height: 100%;
  filter: grayscale(0.6) invert(0.85) contrast(0.9);
  border: none;
}

.contact-form { margin-top: 4px; }
.form-title { margin-bottom: 20px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.input-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.88rem;
  padding: 12px 16px;
  outline: none;
  resize: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); }
textarea.form-input { min-height: 110px; }

.form-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: var(--fw-500);
  align-self: flex-end;
  transition: all var(--transition);
}
.form-btn:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,168,67,0.06);
}
.form-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-btn ion-icon { font-size: 1rem; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .project-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 40px;
    gap: 20px;
  }
  .sidebar {
    width: 100%;
    max-width: 600px;
    position: static;
    max-height: none;
  }
  .info_more-btn { display: flex; }
  .sidebar-info_more { display: none; }
  .sidebar-info_more.active { display: block; }
  .main-content { width: 100%; max-width: 600px; }
  .navbar { justify-content: center; }
  .navbar-list { gap: 2px; flex-wrap: wrap; justify-content: center; }
  .navbar-link { padding: 8px 14px; font-size: 0.82rem; }
}

@media (max-width: 600px) {
  article { padding: 28px 20px; }
  .service-list { grid-template-columns: 1fr; }
  .project-list { grid-template-columns: 1fr 1fr; }
  .blog-posts-list { grid-template-columns: 1fr; }
  .input-wrapper { grid-template-columns: 1fr; }
  .form-btn { align-self: stretch; justify-content: center; }
}

@media (max-width: 420px) {
  .project-list { grid-template-columns: 1fr; }
  .navbar-link { padding: 7px 10px; font-size: 0.78rem; }
}

@media screen and (max-width:1200px) {
  .main-container{
    grid-template-columns: 1fr;
    padding: 20px;
  }
/* edited code */
  .sidebar{
    position: static;
    height: auto;
  }
}

/* Sidebar main container */
.sidebar {
  width: 300px;
  padding: 25px 15px;
  border-radius: 20px;
  background: #1e1e1e;
}

/* Center everything */
.sidebar-info {
  text-align: center;
}

/* Avatar outer box (THIS CREATES THE CARD LOOK) */
.avatar-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  padding: 0;
  border-radius: 0;
  background: none;
}

/* Actual image */
.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

/* Name */
.name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 10px;
}

/* Role badge */
.title {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 10px;
  background: #2a2a2a;
  color: #b0b0b0;
}