/* Najib Husin Portfolio - Batch 1A */

/* Variables */
:root {
  --bg-main: #f8fafc;
  --bg-dark: #071a2f;
  --bg-card: #ffffff;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --primary: #2563eb;
  --cyan: #06b6d4;
  --purple: #7c3aed;

  --border: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.08);

  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --container: 1180px;
  --header-height: 76px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout */
.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section-padding {
  padding: 105px 0;
}

.two-column-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.section-heading {
  max-width: 700px;
}

.section-heading.center {
  text-align: center;
  margin: 0 auto 54px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

/* Najib Husin Portfolio - Batch 1B */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.btn-outline {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.btn-text {
  color: var(--text-main);
  padding-inline: 8px;
}

.btn-small {
  min-height: 40px;
  padding: 0 17px;
  font-size: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.84);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  letter-spacing: -0.05em;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.91rem;
  font-weight: 750;
  color: var(--text-muted);
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Najib Husin Portfolio - Batch 1C */

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: var(--radius-full);
  background: var(--text-main);
}

.mobile-nav {
  display: none;
}

/* Hero section */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.14), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.15), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  color: var(--text-main);
}

.hero-content h1 span {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  background: linear-gradient(135deg, var(--primary), var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 26px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-dark);
}

.hero-description {
  max-width: 660px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

/* Najib Husin Portfolio - Batch 1D */

/* Hero highlights */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  max-width: 720px;
}

.hero-highlights div {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.19);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.055);
}

.hero-highlights strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.hero-highlights span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

/* Hero profile visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: min(100%, 430px);
  padding: 26px;
  border-radius: 36px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.86),
      rgba(255, 255, 255, 0.68)
    ),
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.18),
      transparent 42%
    );
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-soft);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.profile-image-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.18),
      rgba(6, 182, 212, 0.12)
    ),
    #e2e8f0;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Najib Husin Portfolio - Batch 1E */

/* Profile info */
.profile-info {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  background: var(--bg-dark);
  color: var(--text-white);
}

.profile-info h2 {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.profile-info p {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

/* Floating cards */
.floating-card {
  position: absolute;
  z-index: 3;
  padding: 11px 15px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  font-size: 0.82rem;
  font-weight: 850;
}

.floating-card-one {
  top: 18%;
  left: -32px;
}

.floating-card-two {
  right: -34px;
  top: 48%;
}

.floating-card-three {
  left: 34px;
  bottom: 132px;
}

/* About section */
.about-section {
  background: var(--bg-main);
}

.about-content {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-content p + p {
  margin-top: 18px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.focus-card {
  padding: 15px 16px;
  border-radius: 16px;
  color: var(--text-main);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.07),
    rgba(6, 182, 212, 0.05)
  );
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.9rem;
  font-weight: 800;
}

/* Najib Husin Portfolio - Batch 2A */

/* Timeline section */
.timeline-section {
  position: relative;
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(37, 99, 235, 0.09),
      transparent 30%
    ),
    #ffffff;
}

.journey-timeline {
  position: relative;
  max-width: 940px;
  margin: 70px auto 0;
  padding: 20px 0;
}

/* Timeline vertical line */
.timeline-line-bg,
.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  border-radius: var(--radius-full);
  transform: translateX(-50%);
}

.timeline-line-bg {
  height: 100%;
  background: #e2e8f0;
}

.timeline-line-fill {
  height: 0%;
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--cyan),
    var(--purple)
  );
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.35);
  transition: height 0.12s linear;
}

/* Timeline item layout */
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  min-height: 190px;
  margin-bottom: 26px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 2;
}

/* Najib Husin Portfolio - Batch 2B */

/* Timeline dot */
.timeline-dot {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 5px solid #ffffff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(203, 213, 225, 0.32);
  transition: all 0.25s ease;
}

.timeline-item.active .timeline-dot {
  background: var(--primary);
  box-shadow:
    0 0 0 7px rgba(37, 99, 235, 0.16),
    0 0 26px rgba(37, 99, 235, 0.35);
  transform: translateX(-50%) scale(1.08);
}

/* Timeline card */
.timeline-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.23);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.075);
  transition: all 0.25s ease;
}

/* Small connector line from card to middle line */
.timeline-card::before {
  content: "";
  position: absolute;
  top: 36px;
  width: 28px;
  height: 2px;
  background: #cbd5e1;
}

.timeline-item:nth-child(odd) .timeline-card::before {
  right: -57px;
}

.timeline-item:nth-child(even) .timeline-card::before {
  left: -57px;
}

/* Timeline active effect */
.timeline-item.active .timeline-card {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 56px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.timeline-item.active .timeline-card::before {
  background: var(--primary);
}

/* Timeline typography */
.timeline-year {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
}

.timeline-card h3 {
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.timeline-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Najib Husin Portfolio - Batch 2C */

/* Expertise section */
.expertise-section {
  background: var(--bg-main);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.expertise-card {
  position: relative;
  overflow: hidden;
  min-height: 285px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.expertise-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.13),
    rgba(6, 182, 212, 0.08)
  );
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-size: 0.9rem;
  font-weight: 900;
}

.expertise-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.expertise-card p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Najib Husin Portfolio - Batch 2D */

/* Projects section */
.projects-section {
  background: #ffffff;
}

.projects-section .section-heading {
  margin-bottom: 44px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.project-card-large {
  grid-column: span 2;
}

.project-image {
  min-height: 210px;
}

.placeholder-image {
  display: grid;
  place-items: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(
      135deg,
      rgba(7, 26, 47, 0.92),
      rgba(37, 99, 235, 0.82)
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(6, 182, 212, 0.4),
      transparent 34%
    );
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
}

.project-content {
  padding: 26px;
}

.project-type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: var(--radius-full);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.75rem;
  font-weight: 900;
}

.project-content h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.project-content p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-list span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.76rem;
  font-weight: 800;
}

/* Najib Husin Portfolio - Batch 3A */

/* Skills section */
.skills-section {
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.08),
      transparent 26%
    ),
    var(--bg-main);
}

.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.skill-group {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.skill-group h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--text-main);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.075),
    rgba(6, 182, 212, 0.055)
  );
  border: 1px solid rgba(37, 99, 235, 0.1);
  font-size: 0.82rem;
  font-weight: 800;
}

/* Najib Husin Portfolio - Batch 3B */

/* Experience and education section */
.experience-section,
.education-section {
  background: #ffffff;
}

.experience-card,
.education-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.experience-date,
.education-date {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

.experience-card h3,
.education-card h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.experience-role,
.education-card > p {
  margin-top: 6px;
  color: var(--text-muted);
  font-weight: 700;
}

.experience-card ul {
  margin-top: 22px;
  padding-left: 20px;
}

.experience-card li {
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Najib Husin Portfolio - Batch 3C */

/* Final Year Project card */
.fyp-card {
  margin-top: 26px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.08),
      rgba(6, 182, 212, 0.055)
    ),
    #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.fyp-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fyp-card h4 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.fyp-card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Najib Husin Portfolio - Batch 3D */

/* Contact section */
.contact-section {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(6, 182, 212, 0.2),
      transparent 26%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(124, 58, 237, 0.18),
      transparent 28%
    ),
    var(--bg-dark);
  color: var(--text-white);
}

.contact-card {
  padding: 52px;
  border-radius: 36px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.05)
    ),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.contact-card .eyebrow {
  color: #67e8f9;
}

.contact-card h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.contact-card p {
  max-width: 760px;
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Najib Husin Portfolio - Batch 3E */

/* Contact buttons */
.contact-card .btn-secondary,
.contact-card .btn-outline {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.contact-card .btn-secondary:hover,
.contact-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Contact details */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-details a,
.contact-details span {
  display: inline-flex;
  padding: 10px 13px;
  border-radius: var(--radius-full);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.86rem;
  font-weight: 750;
}

.contact-details a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 750;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Najib Husin Portfolio - Batch 4A */

/* Responsive: Tablet */
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-grid {
    gap: 45px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-large {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 30px, var(--container));
  }

  .section-padding {
    padding: 78px 0;
  }

  .desktop-nav,
  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-block;
  }

  .mobile-nav {
    display: none;
    padding: 0 15px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.96);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text-muted);
    font-weight: 800;
  }

  .hero-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 52px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .profile-card {
    width: min(100%, 390px);
  }

  .floating-card-one {
    left: 8px;
  }

  .floating-card-two {
    right: 8px;
  }
}

/* Najib Husin Portfolio - Batch 4B */

/* Responsive: Timeline on tablet/mobile */
@media (max-width: 900px) {
  .journey-timeline {
    max-width: 680px;
    margin-top: 46px;
    padding-left: 22px;
  }

  .timeline-line-bg,
  .timeline-line-fill {
    left: 11px;
  }

  .timeline-item {
    display: block;
    min-height: auto;
    margin-bottom: 22px;
    padding-left: 38px;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: auto;
    text-align: left;
  }

  .timeline-dot {
    left: 11px;
    top: 32px;
  }

  .timeline-card::before {
    width: 24px;
    left: -38px !important;
    right: auto !important;
  }

  .skills-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 34px 26px;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 26px 0;
    text-align: center;
  }
}

/* Najib Husin Portfolio - Batch 4C */

/* Responsive: Small mobile */
@media (max-width: 680px) {
  .brand-text {
    display: none;
  }

  .hero-content h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .hero-content h1 span {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-buttons,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-large {
    grid-column: span 1;
  }

  .profile-card {
    padding: 18px;
    border-radius: 28px;
  }

  .profile-card::before {
    inset: 10px;
    border-radius: 22px;
  }

  .profile-image-wrap {
    border-radius: 22px;
  }

  .floating-card {
    position: static;
    display: inline-flex;
    margin-top: 10px;
    margin-right: 6px;
    transform: none;
  }

  .timeline-card {
    padding: 22px;
  }

  .experience-card,
  .education-card,
  .about-content,
  .skill-group {
    padding: 24px;
  }

  .contact-details {
    flex-direction: column;
  }

  .contact-details a,
  .contact-details span {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Topbar simple brand update */
.brand-simple {
  gap: 0;
}

.brand-simple .brand-text {
  display: inline-block;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .brand-simple .brand-text {
    display: inline-block;
    font-size: 0.95rem;
  }
}

/* Pink Bear style for Core Expertise cards */
.pink-bear-card {
  min-height: 300px;
  padding: 50px 30px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #f5f5f5;
  border: none;
  box-shadow: 0 0 10px rgba(68, 68, 68, 0.25);
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.pink-bear-card::after {
  display: none;
}

.pink-bear-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 5px 20px rgba(68, 68, 68, 0.85);
}

.pink-bear-card .icon,
.pink-bear-card .heading,
.pink-bear-card .content {
  position: relative;
  z-index: 5;
  transition: all 0.5s ease;
}

.pink-bear-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--purple);
  fill: var(--purple);
}

.pink-bear-card .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pink-bear-card .heading {
  margin: 0 0 18px;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #111827;
}

.pink-bear-card .content {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Pink Bear number bubble + hover expand */
.pink-bear-card .number {
  position: absolute;
  top: -90px;
  right: -85px;
  padding: 80px 100px 30px 30px;
  background: linear-gradient(135deg, var(--purple), var(--primary));
  border-radius: 100%;
  z-index: 4;
}

.pink-bear-card .number .text {
  position: relative;
  z-index: 5;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.pink-bear-card .number::after {
  content: "";
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--purple), var(--primary));
  position: absolute;
  border-radius: 100%;
  top: 50%;
  right: 50%;
  transform: translateX(50%) translateY(-50%);
  transition: all 0.5s ease;
  z-index: -1;
}

.pink-bear-card:hover .number::after {
  width: 900px;
  height: 900px;
}

.pink-bear-card:hover .icon,
.pink-bear-card:hover .heading,
.pink-bear-card:hover .content {
  color: #f8fafc;
  fill: #f8fafc;
}

.pink-bear-card:hover .icon svg,
.pink-bear-card:hover .icon path {
  fill: #f8fafc;
}

.pink-bear-card:hover .content {
  color: #e2e8f0;
}

/* Horrible Penguin style for About Me card */
.about-penguin-card {
  width: 100%;
  min-height: 430px;
  padding: 38px 34px;
  background: #171717;
  color: #ffffff;
  transition: 0.7s ease-in-out;
  clip-path: polygon(
    34px 0%,
    100% 0,
    100% calc(100% - 34px),
    calc(100% - 34px) 100%,
    0 100%,
    0% 34px
  );
  border-top-right-radius: 22px;
  border-bottom-left-radius: 22px;
  border: none;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.about-penguin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.32);
}

/* Avatar / image placeholder */
.about-penguin-card .about-avatar {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.95),
      rgba(6, 182, 212, 0.9)
    ),
    #ffffff;
  position: relative;
  overflow: hidden;
}

.about-penguin-card .about-avatar::after {
  content: "NH";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

/* Main title */
.about-penguin-card > span {
  display: block;
  text-align: center;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* About paragraphs */
.about-penguin-card .info {
  max-width: 620px;
  margin: 18px auto 0;
  color: #d1d5db;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Mini tags */
.about-mini-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.about-mini-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: #e0f2fe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
}

/* About card button */
.about-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 28px auto 0;
  padding: 0 24px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 900;
  transition: 0.35s ease-in-out;
}

.about-card-button:hover {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  transform: translateY(-2px);
}