/* MadeByRain */

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

/* MadeByRain */
:root {
  --rose-primary: #bf7386;
  --rose-primary-hover: #ac5f73;
  --rose-light: #f7e9ec;
  --rose-soft: #ebd0d6;
  --rose-glow: rgba(191, 115, 134, 0.22);
  --rose-accent: #dca3af;

  --bg-main: #fbf7f8;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #2d2226;
  --text-muted: #6f5f65;
  --text-light: #9c8b92;

  --border-subtle: rgba(191, 115, 134, 0.18);
  --border-strong: rgba(191, 115, 134, 0.35);
  --shadow-sm: 0 4px 12px rgba(135, 75, 95, 0.05);
  --shadow-md: 0 10px 30px rgba(135, 75, 95, 0.08);
  --shadow-lg: 0 20px 45px rgba(135, 75, 95, 0.12);
  --shadow-rose: 0 8px 24px rgba(191, 115, 134, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(247, 233, 236, 0.7) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(235, 208, 214, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(247, 233, 236, 0.6) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button,
input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* MadeByRain */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 2rem);
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rose-light);
  color: var(--rose-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
  border: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-title span {
  color: var(--rose-primary);
  position: relative;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* MadeByRain */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-accent) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-rose);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(191, 115, 134, 0.35);
  background: linear-gradient(135deg, var(--rose-primary-hover) 0%, var(--rose-primary) 100%);
}

.btn-secondary {
  background: #ffffff;
  color: var(--rose-primary);
  border: 1.5px solid var(--rose-soft);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--rose-light);
  border-color: var(--rose-primary);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

/* MadeByRain */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-main);
}

.logo-badge {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: white;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--font-code);
  font-size: 1.1rem;
  box-shadow: 0 4px 10px var(--rose-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--rose-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* MadeByRain */
.nav-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--rose-soft);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
}

.nav-profile-badge:hover {
  border-color: var(--rose-primary);
  background: var(--rose-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--rose-glow);
}

.nav-profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-primary);
  flex-shrink: 0;
  display: block;
}

.nav-profile-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.nav-profile-badge:hover .nav-profile-name {
  color: var(--rose-primary);
}

.menu-toggle {
  display: none;
  background: var(--rose-light);
  color: var(--rose-primary);
  border: 1px solid var(--border-subtle);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--rose-soft);
  color: var(--rose-primary-hover);
  transform: scale(1.05);
}

/* MadeByRain */
.hero {
  padding-top: 130px;
  padding-bottom: 5rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 1px solid var(--rose-soft);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background-color: #3bb77e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.2);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 183, 126, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(59, 183, 126, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 183, 126, 0);
  }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--rose-primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--rose-light);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rose-primary);
  line-height: 1;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* MadeByRain */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(220, 163, 175, 0.4) 0%, rgba(247, 233, 236, 0.15) 70%);
  border-radius: 50%;
  filter: blur(35px);
  z-index: 0;
}

.avatar-container {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, #ffffff, var(--rose-light));
  box-shadow: 0 20px 45px rgba(191, 115, 134, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.avatar-container:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 25px 50px rgba(191, 115, 134, 0.28);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* MadeByRain */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--rose-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-1 {
  top: 15px;
  left: -20px;
  animation-delay: 0s;
}

.floating-badge.badge-2 {
  bottom: 25px;
  right: -20px;
  animation-delay: 2s;
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rose-light);
  color: var(--rose-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* MadeByRain */
.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}

.highlight-box {
  background: var(--rose-light);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.highlight-box i {
  color: var(--rose-primary);
  font-size: 1.3rem;
}

.highlight-box div h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.highlight-box div p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.terminal-box {
  background: #251b1f;
  color: #f1e4e7;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-code);
  font-size: 0.88rem;
  border: 1px solid rgba(191, 115, 134, 0.3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: #a8949b;
}

.terminal-body .code-line {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  word-break: break-word;
}

.code-keyword {
  color: #dca3af;
  font-weight: 600;
}

.code-var {
  color: #f9d8de;
}

.code-str {
  color: #a3e6b5;
}

.code-num {
  color: #f6c177;
}

.code-comment {
  color: #87747b;
  font-style: italic;
}

/* MadeByRain */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.skill-card {
  background: var(--bg-card);
  padding: 2rem 1.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-primary), var(--rose-accent));
  opacity: 0;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose-soft);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--rose-light);
  color: var(--rose-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border-subtle);
}

.skill-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.skill-card:hover .skill-tag {
  background: var(--rose-light);
  color: var(--rose-primary);
  border-color: var(--rose-soft);
}

/* MadeByRain */
.curriculum-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.semester-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.semester-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.semester-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.semester-title i {
  color: var(--rose-primary);
  font-size: 1.25rem;
}

.semester-title h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.semester-badge {
  background: var(--rose-light);
  color: var(--rose-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.course-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose-primary);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.course-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.course-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* MadeByRain */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--rose-primary);
  color: #ffffff;
  border-color: var(--rose-primary);
  box-shadow: 0 4px 14px var(--rose-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--rose-soft);
}

.project-preview {
  height: 190px;
  background: linear-gradient(135deg, #f7e9ec, #edd4da);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-preview-icon {
  font-size: 4rem;
  color: var(--rose-primary);
  opacity: 0.85;
  transition: var(--transition);
}

.project-card:hover .project-preview-icon {
  transform: scale(1.1);
  opacity: 1;
}

.project-category-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose-primary);
  border: 1px solid var(--rose-soft);
}

.project-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
  flex-grow: 1;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.tech-chip {
  background: var(--rose-light);
  color: var(--rose-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-badge-student {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #27ae60;
  background: #eafaf1;
  border: 1px solid #c2eed5;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose-primary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.project-link-btn:hover {
  background: var(--rose-primary);
  color: #ffffff;
  border-color: var(--rose-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--rose-glow);
}

/* MadeByRain */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37, 27, 31, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MadeByRain */
.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  max-height: 90dvh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(135, 75, 95, 0.28);
  border: 1.5px solid var(--rose-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-window-calc {
  max-width: 640px;
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

/* MadeByRain */
.modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  gap: 0.85rem;
  background: linear-gradient(135deg, #fbf7f8, #f5e4e8);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.win-dot.dot-red {
  background: #ff5f56;
  border: 1px solid #e0443e;
}

.win-dot.dot-yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
}

.win-dot.dot-green {
  background: #27c93f;
  border: 1px solid #1aab29;
}

.window-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-code);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.window-title i {
  color: var(--rose-primary);
}

.modal-close-btn {
  background: transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #ffd5dc;
  color: #c0392b;
  transform: rotate(90deg);
}

/* MadeByRain */
.modal-tabs {
  display: flex;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 1.25rem 0 1.25rem;
  gap: 0.5rem;
}

.modal-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  font-family: inherit;
  transition: var(--transition);
}

.modal-tab-btn:hover {
  color: var(--rose-primary);
  background: rgba(255, 255, 255, 0.6);
}

.modal-tab-btn.active {
  color: var(--rose-primary);
  background: #ffffff;
  border-color: var(--border-subtle);
  box-shadow: 0 -2px 8px rgba(135, 75, 95, 0.05);
  position: relative;
}

.modal-tab-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--rose-primary);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

/* MadeByRain */
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex-grow: 1;
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
  animation: fadeInModalTab 0.25s ease-out;
}

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

/* MadeByRain */
.student-project-note {
  background: linear-gradient(135deg, #fdf8f9, #fbf0f2);
  border: 1px dashed var(--rose-accent);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.student-project-note i {
  color: var(--rose-primary);
  font-size: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.student-project-note strong {
  display: block;
  font-size: 0.84rem;
  color: var(--rose-primary);
  margin-bottom: 0.2rem;
}

.student-project-note p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* MadeByRain */
.grade-calc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-field label i {
  color: var(--rose-primary);
  font-size: 0.9rem;
}

.grade-calc-form .form-control {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  transition: var(--transition);
}

.grade-calc-form .form-control:focus {
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px var(--rose-glow);
}

.form-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.btn-calc {
  flex: 1;
  min-width: 150px;
}

/* MadeByRain */
.grade-result-box {
  margin-top: 1.4rem;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  animation: slideUpResult 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.result-status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.result-status-banner.passed {
  background: #e6f7ec;
  color: #1e7e34;
  border: 1px solid #b7e8c3;
}

.result-status-banner.failed {
  background: #fdf0f2;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.result-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.result-detail-item {
  background: var(--bg-main);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.result-detail-item.highlight-item {
  background: var(--rose-light);
  border-color: var(--rose-soft);
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.detail-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.result-detail-item.highlight-item .detail-val {
  color: var(--rose-primary);
}

.result-student-message {
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

/* MadeByRain */
.calculator-app-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--rose-soft);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
  max-width: 360px;
  margin: 0 auto;
}

.calc-screen {
  background: linear-gradient(135deg, #fdf1f4 0%, #f6d8e0 100%);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  text-align: right;
  box-shadow: inset 0 2px 6px rgba(191, 115, 134, 0.18), 0 2px 10px rgba(191, 115, 134, 0.08);
  border: 1.5px solid var(--rose-soft);
}

.calc-history {
  font-size: 0.82rem;
  color: #8c606e;
  font-family: var(--font-code);
  min-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-display {
  font-size: 2rem;
  font-weight: 800;
  color: #381a25;
  font-family: var(--font-code);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.calc-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.calc-btn {
  height: 52px;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
  border: none;
  outline: none;
}

.calc-btn:active {
  transform: scale(0.94);
}

.calc-btn.btn-num {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 5px rgba(135, 75, 95, 0.06);
}

.calc-btn.btn-num:hover {
  background: var(--rose-light);
  color: var(--rose-primary);
  border-color: var(--rose-soft);
}

.calc-btn.btn-operator {
  background: var(--rose-light);
  color: var(--rose-primary);
  border: 1px solid var(--rose-soft);
  font-size: 1.3rem;
}

.calc-btn.btn-operator:hover {
  background: var(--rose-primary);
  color: #ffffff;
}

.calc-btn.btn-func {
  background: #fbf7f8;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.calc-btn.btn-func:hover {
  background: #f0e6e8;
  color: var(--text-main);
}

.calc-btn.btn-equals {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-accent));
  color: #ffffff;
  border: none;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px var(--rose-glow);
}

.calc-btn.btn-equals:hover {
  background: linear-gradient(135deg, var(--rose-primary-hover), var(--rose-primary));
  box-shadow: 0 6px 16px rgba(191, 115, 134, 0.4);
}

/* MadeByRain */
.code-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1417;
  padding: 0.75rem 1rem;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border: 1px solid rgba(191, 115, 134, 0.25);
  border-bottom: none;
}

.code-preview-header span {
  font-size: 0.8rem;
  color: #d1bfc5;
  font-family: var(--font-code);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  transition: var(--transition);
}

.copy-code-btn:hover {
  background: var(--rose-primary);
  border-color: var(--rose-primary);
}

.code-preview-block {
  background: #251b1f;
  color: #f1e4e7;
  padding: 1.25rem;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  border: 1px solid rgba(191, 115, 134, 0.25);
  font-family: var(--font-code);
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 420px;
}

/* MadeByRain */
.contact-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  overflow: hidden;
}

.contact-info {
  background: linear-gradient(145deg, #fcecee, #f8dfe4);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--rose-soft);
}

.contact-info-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.contact-info-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--rose-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.contact-item-text span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-item-text strong {
  font-size: 0.92rem;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--rose-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--rose-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.contact-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--rose-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--rose-glow);
}

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

.form-feedback {
  display: none;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background: #e6f7ec;
  color: #1e7e34;
  border: 1px solid #b7e8c3;
}

/* MadeByRain */
.footer {
  background: #251b1f;
  color: #d1bfc5;
  padding: 3.5rem 0 2rem 0;
  border-top: 1px solid rgba(191, 115, 134, 0.2);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer-nav a {
  color: #b09ba2;
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #8a767d;
}

.footer-bottom span {
  color: var(--rose-accent);
}

html.modal-open,
body.modal-open,
body.menu-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* MadeByRain */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }

  .hero-title {
    font-size: 3.4rem;
  }
}

/* MadeByRain */
@media (min-width: 993px) and (max-width: 1200px) {
  .nav-links {
    gap: 1.35rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.85rem;
  }

  .avatar-container {
    width: 290px;
    height: 290px;
  }

  .hero-blob {
    width: 320px;
    height: 320px;
  }

  .about-card {
    gap: 2rem;
    padding: 2.5rem;
  }
}

/* MadeByRain */
@media (max-width: 992px) {
  /* MadeByRain */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    padding: 3rem 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.35s ease;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.65rem 1.8rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--rose-light);
    color: var(--rose-primary);
  }

  .nav-link::after {
    display: none;
  }

  /* MadeByRain */
  .hero {
    padding-top: 110px;
    padding-bottom: 4rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: 2.65rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
  }

  .hero-image-wrap {
    margin-top: 1rem;
  }

  /* MadeByRain */
  .about-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  /* MadeByRain */
  .curriculum-wrap {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  /* MadeByRain */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  /* MadeByRain */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--rose-soft);
    padding: 2.5rem;
  }

  .contact-form {
    padding: 2.5rem;
  }
}

/* MadeByRain */
@media (max-width: 768px) {
  .section {
    padding: 4.25rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .avatar-container {
    width: 250px;
    height: 250px;
    border-radius: 30px;
  }

  .hero-blob {
    width: 280px;
    height: 280px;
  }

  .floating-badge {
    padding: 0.6rem 0.9rem;
  }

  .floating-badge.badge-1 {
    left: -5px;
    top: 5px;
  }

  .floating-badge.badge-2 {
    right: -5px;
    bottom: 5px;
  }

  .badge-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .badge-text strong {
    font-size: 0.82rem;
  }

  .badge-text span {
    font-size: 0.72rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .semester-card {
    padding: 1.8rem;
  }

  .semester-header {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .project-preview {
    height: 180px;
  }

  /* MadeByRain */
  .footer {
    padding: 3rem 0 1.8rem 0;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    gap: 1rem 1.5rem;
  }
}

/* MadeByRain */
@media (max-width: 576px) {
  .container {
    padding: 0 1.15rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  /* MadeByRain */
  .hero {
    padding-top: 95px;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.85rem 1.4rem;
  }

  .hero-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding-top: 1.4rem;
  }

  .stat-item {
    flex: 1;
    text-align: center;
  }

  .stat-item h3 {
    font-size: 1.5rem;
  }

  .stat-item p {
    font-size: 0.76rem;
  }

  /* MadeByRain */
  .avatar-container {
    width: 220px;
    height: 220px;
    border-radius: 26px;
  }

  .hero-blob {
    width: 240px;
    height: 240px;
  }

  .floating-badge {
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    gap: 0.55rem;
  }

  .floating-badge.badge-1 {
    left: 0;
    top: -10px;
  }

  .floating-badge.badge-2 {
    right: 0;
    bottom: -10px;
  }

  .badge-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .badge-text strong {
    font-size: 0.78rem;
  }

  .badge-text span {
    font-size: 0.68rem;
  }

  /* MadeByRain */
  .about-card {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .about-text h3 {
    font-size: 1.35rem;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  .terminal-box {
    padding: 1rem 0.85rem;
    font-size: 0.78rem;
    border-radius: 12px;
  }

  /* MadeByRain */
  .semester-card {
    padding: 1.4rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .semester-title h3 {
    font-size: 1.05rem;
  }

  .course-info h4 {
    font-size: 0.9rem;
  }

  .course-info p {
    font-size: 0.8rem;
  }

  /* MadeByRain */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skill-card {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
  }

  /* MadeByRain */
  .filter-tabs {
    gap: 0.45rem;
    margin-bottom: 1.8rem;
  }

  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
  }

  .project-card {
    border-radius: var(--radius-md);
  }

  .project-content {
    padding: 1.35rem 1.15rem;
  }

  .project-title {
    font-size: 1.15rem;
  }

  .project-links {
    gap: 0.5rem;
  }

  .project-link-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
  }

  /* MadeByRain */
  .contact-info {
    padding: 1.6rem 1.2rem;
  }

  .contact-form {
    padding: 1.6rem 1.2rem;
  }

  .contact-info-header h3 {
    font-size: 1.35rem;
  }

  .form-control {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .nav-cta .btn {
    display: none;
  }

  /* MadeByRain */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-window {
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: var(--radius-md);
  }

  .modal-titlebar {
    padding: 0.75rem 1rem;
  }

  .window-title {
    font-size: 0.78rem;
  }

  .modal-tabs {
    padding: 0.3rem 0.75rem 0 0.75rem;
  }

  .modal-tab-btn {
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
  }

  .modal-body {
    padding: 1rem 0.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .btn-calc {
    width: 100%;
  }

  .form-actions-group .btn-sm {
    flex: 1;
  }

  .result-details-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .calculator-app-wrap {
    padding: 0.85rem;
    max-width: 100%;
  }

  .calc-btn {
    height: 48px;
    font-size: 1.05rem;
  }

  .calc-display {
    font-size: 1.7rem;
  }

  .code-preview-block {
    font-size: 0.75rem;
    padding: 0.85rem;
    max-height: 350px;
  }
}

/* MadeByRain */
@media (max-width: 420px) {
  .navbar .nav-container {
    height: 68px;
  }

  .nav-links {
    top: 68px;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    padding: 2.2rem 1.2rem;
    gap: 1rem;
  }

  .logo {
    font-size: 1.15rem;
    gap: 0.45rem;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .nav-profile-badge {
    padding: 0.25rem 0.55rem 0.25rem 0.25rem;
    gap: 0.35rem;
  }

  .nav-profile-img {
    width: 28px;
    height: 28px;
  }

  .nav-profile-name {
    font-size: 0.78rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .avatar-container {
    width: 195px;
    height: 195px;
    border-radius: 22px;
  }

  .hero-blob {
    width: 210px;
    height: 210px;
  }

  .floating-badge {
    padding: 0.4rem 0.65rem;
    gap: 0.45rem;
  }

  .badge-icon {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .badge-text strong {
    font-size: 0.74rem;
  }

  .badge-text span {
    font-size: 0.64rem;
  }

  .stat-item h3 {
    font-size: 1.35rem;
  }

  .stat-item p {
    font-size: 0.72rem;
  }

  .about-card,
  .semester-card,
  .skill-card,
  .contact-info,
  .contact-form {
    padding: 1.25rem 0.95rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
  }

  .modal-overlay {
    padding: 0.4rem;
  }

  .window-controls {
    display: none;
  }

  .modal-tab-btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .calc-btn {
    height: 44px;
    font-size: 0.95rem;
  }

  .calc-display {
    font-size: 1.5rem;
  }
}

/* MadeByRain */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }

  .nav-profile-name {
    display: none;
  }

  .nav-profile-badge {
    padding: 0.2rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .avatar-container {
    width: 175px;
    height: 175px;
    border-radius: 20px;
  }

  .hero-blob {
    width: 190px;
    height: 190px;
  }

  .floating-badge {
    max-width: 155px;
    padding: 0.35rem 0.55rem;
  }

  .floating-badge.badge-1 {
    top: -8px;
  }

  .floating-badge.badge-2 {
    bottom: -8px;
  }

  .badge-icon {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .badge-text strong {
    font-size: 0.7rem;
  }

  .badge-text span {
    font-size: 0.6rem;
  }

  .stat-item h3 {
    font-size: 1.25rem;
  }

  .stat-item p {
    font-size: 0.68rem;
  }

  .terminal-box {
    padding: 0.85rem 0.65rem;
    font-size: 0.72rem;
  }
}

/* MadeByRain */
@media (max-height: 520px) and (orientation: landscape) {
  .nav-links {
    padding: 1.5rem;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    max-width: 260px;
  }

  .hero {
    min-height: auto;
    padding-top: 85px;
    padding-bottom: 2.5rem;
  }

  .avatar-container {
    width: 170px;
    height: 170px;
  }

  .hero-blob {
    width: 190px;
    height: 190px;
  }
}

/* MadeByRain Admin Navigation Badges */
.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  background: var(--rose-light);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--rose-primary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
}

.nav-admin-link:hover {
  background: var(--rose-primary);
  color: #ffffff;
  border-color: var(--rose-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--rose-glow);
}

.footer-admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(191, 115, 134, 0.08);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  margin-top: 0.75rem;
}

.footer-admin-tag:hover {
  color: var(--rose-primary);
  background: var(--rose-light);
  border-color: var(--rose-primary);
}