/* ============================================================
   style.css — Jubayed Emran Portfolio
   ============================================================ */

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

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius: 12px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.6; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: #EFF6FF;
  color: var(--blue);
  border: 1px solid #BFDBFE;
  margin-bottom: .75rem;
}
.badge-teal { background: #F0FDFA; color: var(--teal); border-color: #99F6E4; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: 8px; font-size: .95rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-danger { background: #EF4444; color: var(--white); }
.btn-danger:hover { background: #DC2626; }
.full-width { width: 100%; justify-content: center; }

/* ---- Section ---- */
.section { padding: 5rem 0; }
.bg-gray { background: var(--gray-50); }
.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: .75rem; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; max-width: 600px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ---- Card ---- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--gray-700); transition: color var(--transition); }
.nav a:hover { color: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 8rem 0 5rem; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: 1.25rem; }
.hero-content h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; }
.hero-content p { font-size: 1.1rem; color: var(--gray-600); max-width: 520px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-image { position: relative; }
.hero-img-glow {
  position: absolute; inset: -20px;
  background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(13,148,136,.2));
  border-radius: 24px; filter: blur(40px);
}
.hero-image img { position: relative; border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 3rem; max-width: 800px; margin: 0 auto; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: .4rem; }
.skill-name { font-weight: 600; color: var(--gray-700); }
.skill-level { font-size: .85rem; color: var(--gray-500); }
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 999px; transition: width 1s ease; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-card { display: flex; flex-direction: column; gap: .6rem; }
.service-icon { font-size: 2rem; width: 52px; height: 52px; background: linear-gradient(135deg, var(--blue), var(--teal)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: .25rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; }
.service-card p { color: var(--gray-600); font-size: .95rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 2rem;
  transition: box-shadow var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-card.reverse { direction: rtl; }
.project-card.reverse > * { direction: ltr; }
.project-img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.project-info { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.project-info h3 { font-size: 1.5rem; font-weight: 800; }
.project-info > p { color: var(--gray-600); }
.project-features h4 { font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.project-features ul { display: flex; flex-direction: column; gap: .2rem; }
.project-features li { font-size: .9rem; color: var(--gray-600); }
.tech-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { padding: .2rem .65rem; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 6px; font-size: .8rem; color: var(--gray-700); font-weight: 500; }
.impact-box { background: #EFF6FF; border-radius: 8px; padding: .65rem 1rem; font-size: .9rem; color: #1E40AF; }
.project-btns { display: flex; gap: .5rem; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--blue), var(--teal)); }
.timeline-item { position: relative; padding-left: 2.5rem; margin-bottom: 1.5rem; }
.timeline-dot { position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--blue); }
.timeline-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.timeline-year { font-size: .85rem; font-weight: 700; color: var(--blue); }
.timeline-card h3 { font-size: 1.05rem; font-weight: 700; margin: .3rem 0 .4rem; }
.timeline-card p { color: var(--gray-600); font-size: .9rem; }

/* ============================================================
   WHY WORK WITH ME
   ============================================================ */
.why-card.center { text-align: center; }
.why-icon { font-size: 1.8rem; width: 52px; height: 52px; background: linear-gradient(135deg, var(--teal), var(--blue)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.why-card p { font-size: .88rem; color: var(--gray-600); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.testimonial-header img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testimonial-header h4 { font-weight: 700; font-size: 1rem; }
.testimonial-header p { font-size: .85rem; color: var(--gray-500); }
.company { font-size: .8rem !important; }
.stars { margin-bottom: .6rem; font-size: 1rem; }
.testimonial-text { font-style: italic; color: var(--gray-600); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-card { position: relative; overflow: hidden; }
.process-card::after { content: ''; position: absolute; top: 0; right: 0; width: 60px; height: 60px; background: linear-gradient(135deg, #EFF6FF, #F0FDFA); border-bottom-left-radius: 100%; }
.process-step { font-size: 2.5rem; font-weight: 800; color: var(--blue); margin-bottom: .5rem; }
.process-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.process-card p { color: var(--gray-600); font-size: .9rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: linear-gradient(135deg, #EFF6FF, #F0FDFA); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 1px solid var(--gray-300);
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card { display: flex; align-items: center; gap: 1rem; }
.contact-icon { font-size: 1.4rem; }
.contact-info-card h4 { font-weight: 700; font-size: .95rem; margin-bottom: .15rem; }
.contact-info-card a { color: var(--gray-600); font-size: .9rem; transition: color var(--transition); }
.contact-info-card a:hover { color: var(--blue); }
.social-links { display: flex; gap: .75rem; margin-top: .5rem; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: .85rem;
  font-weight: 700; color: var(--white); transition: transform var(--transition);
}
.social-btn:hover { transform: translateY(-2px); }
.facebook { background: #1877F2; }
.linkedin { background: #0A66C2; }
.github { background: #24292E; }

/* Alert */
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gray-900); color: var(--white); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer .logo { color: var(--white); -webkit-text-fill-color: transparent; background: linear-gradient(135deg, #93C5FD, #5EEAD4); -webkit-background-clip: text; background-clip: text; margin-bottom: .5rem; }
.footer p { color: #9CA3AF; font-size: .9rem; }
.footer h4 { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; color: var(--white); }
.footer ul li { margin-bottom: .4rem; }
.footer ul a, .footer ul li { color: #9CA3AF; font-size: .9rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; }
.footer-bottom p { color: #9CA3AF; font-size: .85rem; }

/* ============================================================
   ADMIN — shared styles
   ============================================================ */
.admin-header { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.admin-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.admin-header h1 { font-size: 1.4rem; font-weight: 700; }
.admin-body { padding: 2.5rem 0; background: var(--gray-50); min-height: calc(100vh - 64px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; float: right; }
.stat-card .stat-label { font-size: .85rem; color: var(--gray-500); margin-bottom: .3rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; }
.table-wrapper { overflow-x: auto; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem 1.1rem; text-align: left; font-size: .9rem; }
th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); }
td { border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.action-btns { display: flex; gap: .4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; color: var(--gray-700); }
.form-input {
  width: 100%; padding: .6rem .9rem; border: 1px solid var(--gray-300);
  border-radius: 8px; font-size: .9rem; font-family: inherit;
  transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); padding: 2rem; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,.25); }
.modal h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.modal-footer { display: flex; gap: .75rem; margin-top: 1.5rem; }
.badge-status { display: inline-block; padding: .2rem .6rem; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.badge-unread { background: #EFF6FF; color: var(--blue); }
.badge-read { background: var(--gray-100); color: var(--gray-500); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 1rem 1.5rem; gap: 1rem; }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content h1 { font-size: 2.2rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-card.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}
