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

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors - Light Theme (Default) — Warm Cream */
  --bg-color: #fdf8f0;          /* Warm cream background */
  --card-bg: #fffdf7;           /* Ivory white card surface */
  --card-bg-hover: #faf4e8;     /* Slightly deeper cream on card hover */
  
  --border-color: #e8dfd0;      /* Warm tan border */
  --border-color-hover: #d4c8b8; /* Deeper warm border hover */
  
  --text-primary: #1c1a17;      /* Deep warm charcoal */
  --text-secondary: #5c5448;    /* Warm brown-gray secondary text */
  --text-muted: #9c8f80;        /* Warm muted taupe */
  
  --accent-primary: #2563eb;    /* Premium sapphire blue accent */
  --accent-hover: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.08);
  
  --nav-bg: rgba(253, 248, 240, 0.85);
  --success: #10b981;
  
  --btn-secondary-bg: #ede5d8;       /* Warm cream-tan background for secondary buttons */
  --btn-secondary-hover: #e0d4c3;
  --btn-secondary-text: #1c1a17;     /* High contrast warm dark text */

  --input-bg: #faf4e8;               /* Form input background */
  --skill-bg: #f0e9dc;               /* Skill tag background */
  --skill-bg-hover: #e8dfd0;
  --social-icon-bg: #ede5d8;         /* Social icon background */
  --social-icon-hover: #e0d4c3;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Spacers */
  --container-width: 1100px;
}

/* Elegant Deep Dark Theme Override */
[data-theme="dark"] {
  --bg-color: #0d1117;          /* Deep near-black background */
  --card-bg: #161b22;           /* Deep charcoal card surface */
  --card-bg-hover: #1c2330;     /* Subtle card hover tint */
  
  --border-color: #30363d;      /* Muted dark border */
  --border-color-hover: #484f58; /* Lighter dark border hover */
  
  --text-primary: #e6edf3;      /* Crisp off-white typography */
  --text-secondary: #8b949e;    /* Muted gray secondary text */
  --text-muted: #6e7681;        /* Quiet metadata text */
  
  --accent-primary: #38bdf8;    /* Vibrant sky-blue accent for dark mode */
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.12);
  
  --nav-bg: rgba(13, 17, 23, 0.85);
  
  --btn-secondary-bg: #21262d;       /* Dark background for secondary buttons */
  --btn-secondary-hover: #30363d;
  --btn-secondary-text: #e6edf3;     /* High contrast white text */

  --input-bg: #0d1117;
  --skill-bg: #21262d;
  --skill-bg-hover: #30363d;
  --social-icon-bg: #21262d;
  --social-icon-hover: #30363d;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

/* --- REUSABLE COMPONENTS --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Category Pill Badges */
.category-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-light);
  border: 1px solid rgba(47, 128, 237, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  letter-spacing: -0.1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;                    /* Hardcoded high contrast white text */
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

/* Flat Minimal Cards */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.glass-card:hover {
  transform: translateY(-3px);
  background: var(--card-bg-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* --- NAVIGATION HEADER --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: height var(--transition-fast);
}

.navbar.scrolled {
  height: 56px;
}

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

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--card-bg-hover);
  color: var(--text-primary);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand span {
  color: var(--accent-primary);
}

.nav-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 3.25rem;
  margin-bottom: 1.2rem;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Layered Screenshots & Phone Mockup */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-phone {
  position: relative;
  width: 200px;
  height: 400px;
  background: #16161a;
  border: 4px solid #2d2d34;
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 2;
}

.mockup-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.mockup-screen-left, .mockup-screen-right {
  position: absolute;
  width: 160px;
  height: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  opacity: 0.45;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transition: all var(--transition-normal);
}

.mockup-screen-left {
  left: 20px;
  transform: rotate(-10deg) scale(0.9);
  z-index: 1;
}

.mockup-screen-right {
  right: 20px;
  transform: rotate(10deg) scale(0.9);
  z-index: 1;
}

.mockup-screen-left img, .mockup-screen-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-screen-left:hover {
  transform: rotate(-3deg) scale(0.95);
  opacity: 0.9;
  z-index: 3;
}

.mockup-screen-right:hover {
  transform: rotate(3deg) scale(0.95);
  opacity: 0.9;
  z-index: 3;
}

/* --- APPS SECTION --- */
.apps-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: left;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2.5rem;
}

/* App Card overrides */
.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  padding: 2.2rem;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.app-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.app-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.app-card-desc {
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
}

.app-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.app-card-footer .btn-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-card-footer .btn-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.app-card-footer .btn-link:hover {
  color: var(--text-primary);
}

.app-card-footer .btn-link:hover svg {
  stroke: var(--text-primary);
  transform: translateX(2px);
}

/* --- ABOUT PAGE SPECIFICS --- */
.about-hero {
  padding: 140px 0 80px;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.about-profile {
  position: sticky;
  top: 100px;
  text-align: center;
}

.profile-avatar-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 3px;
  background: var(--border-color);
  border: 1px solid var(--border-color-hover);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-color);
}

.about-profile h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.about-profile .dev-tag {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--social-icon-bg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
}

.social-icon:hover {
  background: var(--social-icon-hover);
  border-color: var(--border-color-hover);
}

.social-icon:hover svg {
  fill: var(--text-primary);
}

.about-content section {
  margin-bottom: 4rem;
}

.about-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.skill-tag {
  background: var(--skill-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: var(--skill-bg-hover);
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

/* Contact Form Styling */
.contact-form-container {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.form-submit-btn {
  width: 100%;
}

/* --- APP DETAILS PAGE SPECIFICS --- */
.app-detail-hero {
  padding: 130px 0 40px;
}

.app-detail-header-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.app-detail-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  padding: 2px;
}

.app-detail-identity h1 {
  font-size: 2.25rem;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.app-detail-identity .category-pill {
  margin-bottom: 0.6rem;
}

.app-detail-body {
  padding: 30px 0 80px;
}

.app-detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.app-main-content {
  min-width: 0;
}

/* Hero Screen View Banner */
.hero-screen-banner {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
}

.hero-screen-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-section {
  margin-bottom: 3.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gallery-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.gallery-container {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color-hover) var(--bg-color);
}

.gallery-container::-webkit-scrollbar {
  height: 5px;
}

.gallery-container::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: 2.5px;
}

.screenshot-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Features List */
.features-section {
  margin-bottom: 3.5rem;
}

.features-section h3, .desc-section h3, .changelog-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  margin-top: 0.2rem;
}

.feature-check-icon svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 3.5;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.desc-section {
  margin-bottom: 3.5rem;
}

/* Sidebar Metadata */
.sidebar-meta-card {
  position: sticky;
  top: 100px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.7rem;
}

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

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-buttons .btn {
  width: 100%;
}

/* --- CHANGELOG SECTION --- */
.changelog-section {
  margin-bottom: 3.5rem;
}

.changelog-timeline {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.changelog-item {
  border-left: 2px solid var(--border-color);
  padding-left: 1.25rem;
  position: relative;
}

.changelog-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.changelog-version {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.changelog-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.changelog-notes {
  list-style: disc;
  margin-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.changelog-notes li {
  margin-bottom: 0.25rem;
}

/* --- RELATED APPS SECTION --- */
.related-apps-section {
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.related-apps-section h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  letter-spacing: -0.2px;
}

.related-apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Dynamic Content Loader States */
.loading-placeholder {
  text-align: center;
  padding: 5rem 0;
  color: var(--text-secondary);
}

.app-error-state {
  text-align: center;
  padding: 80px 0;
}

.app-error-state h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}

.app-error-state p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* --- PRIVACY POLICY PAGE --- */
.privacy-hero {
  padding: 120px 0 40px;
  text-align: left;
}

.privacy-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.privacy-body {
  padding: 10px 0 80px;
}

.privacy-content-card {
  max-width: 780px;
  margin: 0 auto;
}

.privacy-markdown {
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-markdown h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 1.8rem 0 0.8rem;
}

.privacy-markdown p {
  margin-bottom: 1.1rem;
}

.privacy-markdown ul {
  list-style: disc;
  margin-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.privacy-markdown li {
  margin-bottom: 0.4rem;
}

/* --- FOOTER --- */
.footer {
  margin-top: auto;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  font-family: var(--font-body);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.4px;
}

.footer-brand span {
  color: var(--accent-primary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

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

/* --- PORTFOLIO HERO SECTION --- */
.portfolio-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.portfolio-hero-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.portfolio-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.portfolio-avatar-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-primary), #a78bfa, #38bdf8);
  flex-shrink: 0;
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.25);
}

.portfolio-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
}

.portfolio-hero-text {
  text-align: left;
}

.portfolio-hero-text .greeting {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

.portfolio-hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.portfolio-hero-text .role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.portfolio-hero-text .bio {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border-color);
  background: var(--social-icon-bg);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero-social-btn:hover {
  background: var(--social-icon-hover);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero-social-btn.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.hero-social-btn.github-btn:hover {
  background: var(--accent-light);
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--accent-primary);
}

/* --- VIEW ALL CTA --- */
.view-all-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.view-all-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
  transition: all var(--transition-fast);
}

.btn-view-all:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-view-all svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition-fast);
}

.btn-view-all:hover svg {
  transform: translateX(3px);
}

/* --- PROJECTS PAGE HEADER --- */
.projects-page-hero {
  padding: 130px 0 60px;
  border-bottom: 1px solid var(--border-color);
}

.projects-page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0.75rem;
}

.projects-page-hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
}

.projects-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* Responsive portfolio hero */
@media (max-width: 768px) {
  .portfolio-hero {
    padding: 110px 0 60px;
  }

  .portfolio-hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
  }

  .portfolio-avatar-ring {
    width: 150px;
    height: 150px;
  }

  .portfolio-hero-text {
    text-align: center;
  }

  .portfolio-hero-text h1 {
    font-size: 2.4rem;
  }

  .portfolio-hero-text .bio {
    font-size: 1rem;
  }

  .hero-social-links {
    justify-content: center;
  }

  .projects-page-hero h1 {
    font-size: 2rem;
  }
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-mockup-wrapper {
    height: 380px;
  }
  
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-profile {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
  
  .app-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    overflow: hidden;
  }

  .app-main-content {
    display: contents;
  }

  .app-sidebar {
    width: 100%;
    min-width: 0;
    order: 3;
  }

  .hero-screen-banner { order: 1; }
  .gallery-section { order: 2; }
  .desc-section { order: 4; }
  .features-section { order: 5; }
  .changelog-section { order: 6; }

  .sidebar-meta-card {
    position: relative;
    top: 0;
  }

  .metadata-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .meta-value {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    border-bottom: none;
    padding-bottom: 0;
  }

  .sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  #btn-privacy {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
    margin-top: 0.25rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Mobile Nav Menu */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 80px 2rem;
    gap: 1.8rem;
    transition: right var(--transition-normal);
    z-index: 105;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px);
  }
  
  .nav-right {
    gap: 1rem;
  }
  
  /* Hero typography and margins */
  .hero {
    padding: 100px 0 40px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-cta .btn {
    width: 100%;
  }

  /* Mockup responsiveness - Hiding left/right side screenshots to prevent overflow */
  .hero-mockup-wrapper {
    height: 330px;
  }
  
  .mockup-screen-left, .mockup-screen-right {
    display: block;
    width: 120px;
    height: 240px;
  }

  .mockup-screen-left {
    left: 0;
  }

  .mockup-screen-right {
    right: 0;
  }
  
  .mockup-phone {
    width: 160px;
    height: 320px;
    border-radius: 24px;
    padding: 6px;
    margin: 0 auto;
  }
  
  .mockup-phone img {
    border-radius: 18px;
  }
  
  .app-detail-header-card {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .hero-screen-banner {
    height: 180px;
  }
  
  .related-apps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none; /* Prevent standard browser gestures while zoomed */
  outline: none;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoom {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #f8fafc;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
  z-index: 2010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 2010;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.lightbox-arrow:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 2010;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

/* Hide arrows on mobile viewports and rely on swiping */
@media (max-width: 768px) {
  .lightbox-arrow {
    display: none;
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

