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

/* CSS Variables */
:root {
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-hover: #0369a1;
  --secondary: #0f172a;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-sky: #f0f9ff;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border-color: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 8px 10px -6px rgba(2, 132, 199, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(2, 132, 199, 0.1), 0 10px 10px -5px rgba(2, 132, 199, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
}

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

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

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility Components */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  color: var(--primary);
  opacity: 0.8;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-header .title {
  font-size: 2.5rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  color: rgba(15, 23, 42, 0.95);
}

.section-header .title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 30px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, #0274ae, var(--primary));
}

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

.btn-outline:hover {
  background: var(--bg-sky);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navbar Styles (Glassmorphism + Fix Tampilan Sejajar)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

header.scrolled {
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo .logo-icon {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

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

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

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

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 8px;
  z-index: 9999 !important;
  position: relative;
  min-width: 44px;
  min-height: 44px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, var(--bg-sky) 0%, var(--bg-light) 100%);
  padding-top: 120px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-tag {
  background-color: var(--bg-sky);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(2, 132, 199, 0.15);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* About Section */
.about {
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-title {
  font-size: 2.2rem;
}

.about-text {
  color: var(--text-light);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.stat-item {
  background-color: var(--bg-sky);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(2, 132, 199, 0.08);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.about-illustration {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  max-width: 400px;
  z-index: 2;
  position: relative;
}

.about-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e0f2fe;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.about-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.about-card-list i {
  color: var(--primary);
  font-size: 1.1rem;
}

.about-illustration::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background-color: var(--bg-sky);
  border-radius: 50%;
  bottom: -40px;
  left: -40px;
  z-index: 1;
}

/* Skills Section */
.skills {
  background-color: var(--bg-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skills-column {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skills-column:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.2);
}

.skills-icon-wrap {
  width: 50px;
  height: 50px;
  background-color: var(--bg-sky);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.skills-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.9rem;
}

.skill-name {
  color: var(--secondary);
}

.skill-pct {
  color: var(--primary);
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* ==========================================================================
   Projects Section (Grid 3 Kolom Paten Desktop)
   ========================================================================== */
.projects {
  background-color: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px;
  width: 100%;
  margin: 0 auto;
}

.project-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.25);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background-color: var(--bg-sky);
  border-bottom: 1px solid var(--border-color);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 132, 199, 0.2);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: white;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  border: 1px solid rgba(2, 132, 199, 0.1);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  transition: var(--transition);
}

.project-title:hover {
  color: var(--primary);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  background-color: var(--bg-light);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
}

.project-link:hover {
  color: var(--primary);
}

/* Contact Section */
.contact {
  background-color: var(--bg-sky);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-sky);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-btn {
  width: 44px;
  height: 44px;
  background-color: white;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

/* Contact Form */
/* Contact Section Fixes */
.contact-form-wrap {
  background: #ffffff;
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .input-icon {
  position: absolute;
  left: 18px;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition);
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.input-group textarea {
  min-height: 140px;
  resize: vertical;
  padding-top: 16px;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.input-group input:focus+.input-icon,
.input-group textarea:focus+.input-icon,
.input-group:focus-within .input-icon {
  color: var(--primary);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
  background: linear-gradient(135deg, #0274ae, var(--primary));
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Status Alert Fixes */
.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.form-status.success {
  display: block;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Message Status Alert */
.form-status {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer Section */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-logo span {
  color: var(--primary-light);
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: white;
}

.copyright {
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ==========================================================================
   Origin Story Section 
   ========================================================================== */
.origin-story {
  background: linear-gradient(175deg, #0a1628 0%, #0d1f3c 60%, #0a1628 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.origin-bg-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.09) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.story-header {
  text-align: center;
  margin-bottom: 70px;
}

.story-header .subtitle {
  background: linear-gradient(90deg, var(--primary-light), #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-header .title {
  color: #f1f5f9;
}

.story-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.story-opening {
  text-align: center;
  padding: 0 20px;
}

.story-dropcap {
  font-size: 1.25rem;
  color: #94a3b8;
  line-height: 2;
  font-family: var(--font-body);
}

.story-dropcap em {
  color: #7dd3fc;
  font-style: italic;
}

.dropcap {
  float: left;
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.75;
  margin-right: 12px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 48px 0;
}

.story-col p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.story-col p:last-child {
  margin-bottom: 0;
}

.story-col em {
  color: #bfdbfe;
  font-style: italic;
}

.story-col strong {
  color: #38bdf8;
  font-weight: 600;
}

.story-pullquote {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
}

.pullquote-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
}

.story-pullquote blockquote {
  flex: 2.5;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.7;
  border: none;
  padding: 0;
}

.story-closing {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 40px 44px;
}

.story-closing-inner {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.story-logo-seal {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(56, 189, 248, 0.08));
  border: 2px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  animation: glowPulse 3.5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
  }

  50% {
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.3);
  }
}

.story-logo-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-closing-text p {
  color: #94a3b8;
  font-size: 0.97rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.story-closing-text p:last-of-type {
  margin-bottom: 20px;
}

.story-closing-text strong {
  color: #38bdf8;
}

.story-closing-text em {
  color: #bfdbfe;
  font-style: italic;
}

.story-signature {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #475569;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Scroll-Reveal Optimization (will-change GPU)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-illustration {
    order: -1;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
    z-index: 9998;
  }

  .nav-menu.active {
    right: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .story-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-pullquote blockquote {
    font-size: 1rem;
  }

  .pullquote-line {
    display: none;
  }

  .story-closing {
    padding: 28px 24px;
  }

  .story-closing-inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .dropcap {
    font-size: 3.8rem;
  }
}