/* ============================================
   Ahmed Raoofuddin Portfolio
   Dark theme + red gradient accent
   Font: Raleway
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #101010;
  --bg-alt: #161616;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1f1f1f;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #ff3b3b;
  --accent-soft: #ff6b6b;
  --accent-glow: rgba(255, 59, 59, 0.4);
  --gradient: linear-gradient(135deg, #ff3b3b 0%, #ff6b9d 100%);
  --sidebar-width: 280px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }

body {
  font-family: 'Raleway', -apple-system, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: var(--text); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-soft); }

img { max-width: 100%; display: block; }

/* ============================================
   LAYOUT
   ============================================ */
.page-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 59, 59, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 157, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  background: #0a0a0a;
  border-right: 1px solid var(--border);
  padding: 40px 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 2px; }

.sidebar-profile {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.sidebar-profile img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin: 0 auto 18px;
  box-shadow: 0 0 30px rgba(255, 59, 59, 0.2);
  transition: transform 0.4s ease;
}

.sidebar-profile img:hover { transform: scale(1.05); }

.sidebar-profile h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-profile p {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  padding-left: 12px;
  position: relative;
  display: inline-block;
}

.sidebar-profile p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 12px;
  background: var(--accent);
}

.sidebar-nav {
  width: 100%;
  flex: 1;
  margin-top: 20px;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav li { margin-bottom: 6px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.sidebar-nav a i {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-size: 13px;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: transform 0.3s;
}

.sidebar-nav a:hover {
  background: var(--bg-card);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-nav a:hover i { transform: rotate(360deg); }

.sidebar-nav a.active {
  background: var(--bg-card);
  color: #fff;
}

.sidebar-nav a.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gradient);
  border-radius: 2px 0 0 2px;
}

.sidebar-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.sidebar-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sidebar-social a:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.section {
  display: none;
  min-height: 100vh;
  padding: 80px 60px;
  animation: fadeIn 0.6s ease;
}

.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Title, decorative brackets */
.section-title-wrap {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title {
  display: inline-block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #fff;
  position: relative;
  padding: 0 30px;
}

.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
}

.section-title::before {
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.section-title::after {
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.section-title-wrap::after {
  content: '';
  display: block;
  margin: 15px auto 0;
  width: 80px;
  height: 2px;
  background: var(--gradient);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 15px;
}

/* ============================================
   HOME SECTION
   ============================================ */
#home {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 59, 59, 0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cpath fill='%23ff3b3b' fill-opacity='0.03' d='M30 0l30 17.32v34.64L30 69.28 0 51.96V17.32z'/%3E%3C/svg%3E");
  padding: 40px;
}

#home.active { display: flex; }

.home-content { max-width: 900px; }

.home-hello {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0;
  animation: slideUp 0.8s ease 0.2s forwards;
}

.home-name {
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
  opacity: 0;
  animation: slideUp 0.8s ease 0.4s forwards;
}

.home-name .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-tagline {
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 30px;
  opacity: 0;
  animation: slideUp 0.8s ease 0.6s forwards;
}

.home-tagline .typed-text {
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-description {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
  opacity: 0;
  animation: slideUp 0.8s ease 0.8s forwards;
}

.home-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s ease 1s forwards;
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--accent-glow);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 11px;
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-sm:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.about-location {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 14px;
}

.about-text p strong { color: #fff; font-weight: 600; }

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

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

.info-item i {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.info-item .label {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.info-item .value {
  color: #fff;
  font-size: 12px;
  word-break: break-word;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.1), transparent);
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* ============================================
   RESUME SECTION
   ============================================ */
.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.resume-header h3 {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

.resume-header h3 small {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 4px;
}

.timeline {
  max-width: 1000px;
  margin: 0 auto 60px;
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent);
}

.timeline-date {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 59, 59, 0.1);
  border-radius: 20px;
}

.timeline-item h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-item .company {
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
}

.timeline-item li {
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.6;
}

.timeline-item li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tech-tags span {
  font-size: 10px;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  position: relative;
}

.skill-column::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20px;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}

.skill-column h3 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
  margin-bottom: 25px;
}

.skill-column h3 small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 4px;
}

.skill-bar {
  margin-bottom: 18px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-bar-header span:first-child {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.skill-bar-header span:last-child {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.skill-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  font-family: 'Raleway', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-item.hidden { display: none; }

.portfolio-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.portfolio-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.portfolio-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.portfolio-content p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.portfolio-tech span {
  font-size: 10px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--accent-soft);
  font-weight: 500;
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
  max-width: 1300px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-image {
  position: relative;
  padding-top: 55%;
  overflow: hidden;
}

.blog-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.blog-card:hover .blog-image img { transform: scale(1.1); }

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gradient);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.blog-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta i { color: var(--accent); }

.blog-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-content p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.blog-read-more {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.blog-read-more:hover { gap: 10px; color: var(--accent-soft); }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

.contact-info h3 small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 4px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.contact-item i {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item .label {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-item .value { color: #fff; font-size: 14px; }
.contact-item .value a { color: #fff; }
.contact-item .value a:hover { color: var(--accent); }

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.3s;
}

.contact-social a:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20px;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group { margin-bottom: 18px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { min-height: 140px; resize: vertical; }

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

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.cert-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.cert-tab {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s;
}

.cert-tab:hover,
.cert-tab.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.cert-grid {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.cert-grid.active { display: grid; }

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
}

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

.cert-card i {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cert-card span {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transition: all 0.3s;
}

.education-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20px;
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
}

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

.education-card .edu-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
}

.education-card h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.education-card .edu-date {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.education-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.education-card p strong { color: #fff; }

/* ============================================
   BLOG POST PAGE
   ============================================ */
.blog-post-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-post-back:hover { gap: 12px; }

.blog-post-header { margin-bottom: 40px; }

.blog-post-category {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.blog-post-title {
  font-size: 42px;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.blog-post-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}

.blog-post-meta span { display: flex; align-items: center; gap: 8px; }
.blog-post-meta i { color: var(--accent); }

.blog-post-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin: 30px 0 40px;
}

.blog-post-content h2 {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  margin: 35px 0 15px;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

.blog-post-content h3 {
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  margin: 30px 0 12px;
}

.blog-post-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.blog-post-content strong { color: #fff; font-weight: 600; }

.blog-post-content code {
  background: var(--bg-card);
  color: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}

.blog-post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 20px 0;
}

.blog-post-content pre code {
  background: none;
  color: var(--text);
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.blog-post-content ul,
.blog-post-content ol {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 30px;
  margin-bottom: 18px;
}

.blog-post-content li { margin-bottom: 8px; }

.blog-post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
  padding: 20px 25px;
  margin: 25px 0;
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-style: italic;
}

/* ============================================
   MOBILE HEADER + SLIDE-IN DRAWER MENU
   ============================================ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.mobile-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
}

.mobile-header .logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.mobile-menu-btn {
  background: var(--gradient);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.3s;
}

.mobile-menu-btn:active { transform: scale(0.92); }

/* Backdrop overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Slide-in drawer from left */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #0a0a0a;
  border-right: 1px solid var(--border);
  z-index: 200;
  padding: 30px 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
  display: block;
}

.mobile-menu.active { transform: translateX(0); }

.mobile-menu-profile {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.mobile-menu-profile img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(255, 59, 59, 0.25);
}

.mobile-menu-profile h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 6px;
}

.mobile-menu-profile p {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
}

.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gradient);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.mobile-menu ul { list-style: none; }
.mobile-menu li { margin-bottom: 6px; }

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: transparent;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}

.mobile-menu a.active,
.mobile-menu a:active {
  background: var(--bg-card);
  color: #fff;
}

.mobile-menu a i {
  width: 34px;
  height: 34px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 12px;
  box-shadow: 0 4px 12px var(--accent-glow);
  flex-shrink: 0;
}

.mobile-menu-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.mobile-menu-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 0;
  margin: 0;
}

.mobile-menu-social a:hover,
.mobile-menu-social a:active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-image img { min-height: 300px; }
}

/* Tablet */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; width: 100%; padding-top: 64px; }
  .section { padding: 40px 20px; }
  .home-name { font-size: 38px; }
  .home-tagline { font-size: 20px; }
  .home-hello { font-size: 15px; }
  .home-description { font-size: 13px; }
  .section-title { font-size: 26px; letter-spacing: 3px; padding: 0 22px; }
  .section-title-wrap { margin-bottom: 40px; }
  .portfolio-grid, .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .about-info-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .blog-post-title { font-size: 28px; }
  .blog-post-hero { height: 240px; }
  .timeline { padding-left: 24px; }
  .timeline-item { padding-left: 20px; }
  .timeline-item::before { left: -33px; width: 16px; height: 16px; }
  .resume-header { flex-direction: column; gap: 20px; align-items: flex-start; }
  .education-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr !important; }
  .skill-column { padding: 24px 20px; }
  .contact-form { padding: 24px 20px; }
  .blog-post-wrap { padding: 20px 0; }
  .blog-post-content h2 { font-size: 22px; }
  .blog-post-content h3 { font-size: 18px; }
  .blog-post-content p, .blog-post-content ul, .blog-post-content ol { font-size: 14px; }
}

/* Phone */
@media (max-width: 600px) {
  .section { padding: 30px 16px; }
  .home-name { font-size: 30px; }
  .home-tagline { font-size: 17px; }
  .home-content { padding: 0 6px; }
  .home-buttons { flex-direction: column; align-items: center; width: 100%; gap: 12px; }
  .btn { width: 100%; justify-content: center; max-width: 300px; padding: 13px 24px; font-size: 12px; }
  .section-title { font-size: 22px; letter-spacing: 2px; padding: 0 18px; }
  .section-title::before, .section-title::after { width: 10px; height: 10px; top: -8px; }
  .section-subtitle { font-size: 11px; letter-spacing: 2px; }
  .about-info-grid { grid-template-columns: 1fr; }
  .about-text h3 { font-size: 22px; }
  .resume-header h3 { font-size: 18px; }
  .timeline-item h4 { font-size: 16px; }
  .timeline-item li { font-size: 12px; }
  .portfolio-content h3, .blog-content h3 { font-size: 16px; }
  .blog-post-title { font-size: 22px; }
  .blog-post-hero { height: 200px; margin: 20px 0 24px; }
  .blog-post-meta { flex-wrap: wrap; gap: 12px; font-size: 12px; }
  .contact-form { padding: 20px 16px; }
  .contact-item { padding: 12px; }
  .contact-item i { width: 38px; height: 38px; font-size: 14px; }
  .form-group input, .form-group textarea { font-size: 14px; padding: 12px 14px; }
  .skill-bar-header span { font-size: 11px; }
  .portfolio-filter, .cert-tabs { gap: 6px; }
  .filter-btn, .cert-tab { padding: 8px 14px; font-size: 10px; }
  .tech-tags span, .portfolio-tech span { font-size: 9px; padding: 3px 8px; }
}
