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

/* --- Design Tokens & Variables --- */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme: Dark (Default) */
  --bg-color: #0f1015;
  --bg-gradient: radial-gradient(circle at 50% 0%, #1e2032 0%, #0f1015 80%);
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  
  --primary-color: #6366f1; /* Indigo */
  --primary-rgb: 99, 102, 241;
  --secondary-color: #ec4899; /* Pink */
  --secondary-rgb: 236, 72, 153;
  --accent-color: #06b6d4; /* Cyan */
  --accent-rgb: 6, 182, 212;

  --card-bg: rgba(20, 22, 33, 0.85);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-hover: rgba(99, 102, 241, 0.5);
  
  --input-bg: rgba(20, 22, 33, 0.9);
  --input-border: rgba(255, 255, 255, 0.16);
  --input-focus: rgba(99, 102, 241, 0.6);

  --header-bg: rgba(15, 16, 21, 0.85);
  --nav-link-hover: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme: Light Mode Overrides */
html.light-mode {
  --bg-color: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% 0%, #eef2ff 0%, #f8fafc 80%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --primary-color: #4f46e5;
  --primary-rgb: 79, 70, 229;
  --secondary-color: #db2777;
  --secondary-rgb: 219, 39, 119;
  --accent-color: #0891b2;
  --accent-rgb: 8, 145, 178;

  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(79, 70, 229, 0.3);

  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.12);
  --input-focus: rgba(79, 70, 229, 0.4);

  --header-bg: rgba(248, 250, 252, 0.8);
  --nav-link-hover: #000000;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

.section {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), height var(--transition-normal);
}

header.scrolled {
  height: 70px;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-link-hover);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background var(--transition-fast), border var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

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

html.light-mode .theme-toggle .moon-icon {
  display: none;
}

html.light-mode .theme-toggle .sun-icon {
  display: block;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

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

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, rgba(var(--secondary-rgb), 0.1) 70%);
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
  animation: float-slow 10s infinite alternate;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--card-border);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image-wrapper img {
  width: 100%;
  max-width: 500px;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
  scale: 1.03;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4), var(--shadow-glow);
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* --- Cards / Glassmorphism --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* --- App Cards (Grid / Showcase) --- */
.app-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.app-card-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.1;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--card-border);
}

.app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.app-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.app-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.tag-sec {
  background: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

.app-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.app-description {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.app-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
  margin-top: auto;
}

.app-badge-group {
  display: flex;
  gap: 8px;
}

.app-badge-icon {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
}

/* --- Filter Tab Controls --- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

/* --- Articles & Blogs --- */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}

.article-card-img {
  width: 100%;
  aspect-ratio: 1.6;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--card-border);
  position: relative;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card-title a:hover {
  color: var(--primary-color);
}

.article-excerpt {
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-top: auto;
}

.read-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.article-card:hover .read-more svg {
  transform: translateX(4px);
}

/* --- Search Controls --- */
.search-container {
  display: flex;
  max-width: 500px;
  margin: 0 auto 40px auto;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-full);
  padding: 14px 24px 14px 48px;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--input-focus);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* --- Article Detail Styling --- */
.article-detail-header {
  padding: 120px 0 60px 0;
  text-align: center;
}

.article-detail-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  flex-wrap: wrap;
}

.article-detail-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--card-bg);
  padding: 24px 32px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 32px 0;
  font-style: italic;
}

.article-body blockquote p {
  margin-bottom: 0;
  color: var(--text-primary);
}

.article-body ul, .article-body ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.article-body code {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
  font-size: 0.9em;
}

/* --- About page (Timeline) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
  z-index: 1;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--secondary-color);
}

.timeline-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--secondary-color);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
  margin-bottom: 8px;
}

.timeline-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* --- Contact Page (Form) --- */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

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

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.contact-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.contact-method-text h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-method-text p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--card-border);
  background-color: rgba(8, 9, 13, 0.3);
  padding: 60px 0 30px 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

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

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-color);
}

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

.social-links {
  display: flex;
  gap: 16px;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: fill var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover svg {
  fill: var(--primary-color);
  transform: translateY(-2px);
}

/* --- Mobile Navigation & Overlays --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--card-border);
    flex-direction: column;
    padding: 100px 40px;
    gap: 24px;
    transition: right var(--transition-normal);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-grid, .about-grid, .contact-container, .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .hero {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-image-wrapper {
    transform: none;
    max-width: 360px;
    margin: 0 auto;
  }
  
  .hero-image-wrapper:hover {
    transform: none;
  }
  
  .timeline::before {
    left: 10px;
  }
  .timeline-dot {
    left: 1px;
  }
  .timeline-item {
    padding-left: 30px;
  }
}

/* --- Animations & Utilities --- */
@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

.animate-float {
  animation: float-slow 6s infinite ease-in-out;
}

/* Scroll Animation classes (handled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Jump Nav (App Page) --- */
.jump-nav-container {
  position: sticky;
  top: 80px;
  z-index: 90;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
  margin-bottom: 40px;
  transition: top var(--transition-normal);
}
header.scrolled + main .jump-nav-container,
header.scrolled ~ .jump-nav-container,
header.scrolled + .jump-nav-container {
  top: 70px;
}
.jump-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}
.jump-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.jump-link:hover {
  border-color: var(--primary-color);
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-1px);
  color: var(--primary-color);
}
.jump-link-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

/* --- Immersive App Showcase Sections --- */
.app-showcase-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--card-border);
  position: relative;
}
.app-showcase-section:last-child {
  border-bottom: none;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}
.app-showcase-section:nth-child(even) .showcase-grid {
  grid-template-columns: 0.85fr 1.15fr;
}
.app-showcase-section:nth-child(even) .showcase-text-col {
  grid-column: 2;
}
.app-showcase-section:nth-child(even) .showcase-visual-col {
  grid-column: 1;
  grid-row: 1;
}
.showcase-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.showcase-visual-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--card-border);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-slow);
}
.showcase-visual-wrapper img {
  width: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.app-showcase-section:hover .showcase-visual-wrapper {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(var(--primary-rgb), 0.2);
}
.app-showcase-section:hover .showcase-visual-wrapper img {
  transform: scale(1.02);
}
.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
}
.spec-item {
  font-size: 0.9rem;
}
.spec-label {
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.spec-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* Responsive showcase adjustments */
@media (max-width: 768px) {
  .jump-nav-container {
    top: 70px;
  }
  .showcase-grid,
  .app-showcase-section:nth-child(even) .showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
  .app-showcase-section:nth-child(even) .showcase-text-col {
    grid-column: auto;
  }
  .app-showcase-section:nth-child(even) .showcase-visual-col {
    grid-column: auto;
    grid-row: auto;
  }
  .app-showcase-section {
    padding: 60px 0;
  }
  .spec-list {
    grid-template-columns: 1fr;
  }
}

