/* 
  Joshi Software Group - Landing Page Style Guide
  Modern, Minimalist, Indie-Developer Brand Styling
*/

/* --- Design Tokens --- */
:root {
  /* Colors */
  --primary: #4f46e5;          /* Indigo */
  --primary-glow: rgba(79, 70, 229, 0.15);
  --secondary: #06b6d4;        /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --accent: #f59e0b;           /* Amber */
  
  --dark-bg: #0f172a;          /* Slate 900 */
  --dark-surface: #1e293b;     /* Slate 800 */
  --dark-surface-low: #0f172a;
  
  --light-bg: #f8fafc;         /* Slate 50 */
  --light-surface: #ffffff;
  --light-surface-high: #f1f5f9;
  
  --text-dark: #0f172a;
  --text-muted-dark: #64748b;
  --text-light: #f8fafc;
  --text-muted-light: #94a3b8;
  
  --border-radius: 16px;
  --border-radius-lg: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-headline: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

.text-muted {
  color: var(--text-muted-dark);
}

/* Language Display Utility */
html[lang="en"] .lang-content[lang="de"],
html[lang="de"] .lang-content[lang="en"] {
  display: none;
}

/* --- Header / Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: var(--transition-fast);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

/* Language Switch Button */
.lang-switch-container {
  display: flex;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.04);
}

.lang-divider {
  opacity: 0.4;
}

.alt-lang {
  opacity: 0.5;
}

/* --- Hero Section --- */
.hero-section {
  padding-block-start: 8.5rem;
  padding-block-end: 6rem;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background-color: var(--primary-glow);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-block-end: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-headline);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-block-end: 1.5rem;
  color: var(--text-dark);
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted-dark);
  margin-block-end: 2.5rem;
  max-width: 90%;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background-color: var(--light-surface);
  color: var(--text-dark);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn-secondary:hover {
  background-color: var(--light-surface-high);
  border-color: rgba(15, 23, 42, 0.2);
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  height: 380px;
}

.showcase-card {
  position: absolute;
  width: 280px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  z-index: 10;
  transition: var(--transition-normal);
}

.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.float-1 {
  top: 10%;
  left: 5%;
}

.float-2 {
  bottom: 10%;
  right: 5%;
}

.card-header {
  padding: 0.75rem 1rem;
  background-color: rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accent-header {
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

.card-dots {
  display: flex;
  gap: 0.25rem;
}

.card-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.2);
}

.card-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted-dark);
}

.card-body {
  padding: 1.25rem;
}

/* Fake Task Component */
.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.task-item:last-child {
  margin-block-end: 0;
}

.checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.task-item.checked .checkbox {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.task-item.checked .task-text {
  text-decoration: line-through;
  color: var(--text-muted-dark);
}

/* Fake Progress Component */
.progress-bar-container {
  margin-block-end: 1rem;
}

.progress-bar-container:last-child {
  margin-block-end: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  margin-block-end: 0.35rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: rgba(15, 23, 42, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: 9999px;
}

/* Background Blur Circles */
.bg-blur-circle-1, .bg-blur-circle-2 {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.15;
}

.bg-blur-circle-1 {
  background-color: var(--primary);
  top: 10%;
  right: 15%;
}

.bg-blur-circle-2 {
  background-color: var(--secondary);
  bottom: 10%;
  left: 20%;
}

/* --- Products Section --- */
.products-section {
  padding-block: 6rem;
  background-color: var(--light-surface-high);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: 4rem;
}

.section-header h2 {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-block-end: 1rem;
  color: var(--text-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--light-surface);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(15, 23, 42, 0.03);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.product-icon-container {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 1.5rem;
}

.product-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.color-games {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--secondary);
}

.color-apps {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.color-productivity {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}

.color-wedding {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.product-card h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  margin-block-end: 0.75rem;
}

.product-card p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  margin-block-end: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-block-start: 1rem;
}

.product-highlight {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition-fast);
}

.product-link:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.card-placeholder {
  opacity: 0.75;
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.15);
  background-color: rgba(255, 255, 255, 0.35);
}

.card-placeholder:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

/* --- Philosophy Section --- */
.philosophy-section {
  padding-block: 7rem;
}

.philosophy-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.philosophy-image {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  height: 350px;
  border-radius: var(--border-radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(79, 70, 229, 0.15);
  overflow: hidden;
}

.tech-stack-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 80%;
}

.tech-tag {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.philosophy-content h2 {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-block-end: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  margin-block-end: 2.5rem;
}

.philosophy-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
}

.feature-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary);
  margin-block-start: 0.6rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  margin-block-end: 0.25rem;
}

.feature-item p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

/* --- About Section --- */
.about-section {
  padding-block: 6rem;
  background-color: var(--light-surface-high);
}

.about-card {
  max-width: 750px;
  margin-inline: auto;
  background-color: var(--light-surface);
  padding: 3.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.03);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.about-card h2 {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  margin-block-end: 1.5rem;
}

.about-card p {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  margin-block-end: 2.5rem;
  line-height: 1.7;
}

.developer-info {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.developer-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-headline);
}

/* --- Footer --- */
.main-footer {
  padding-block: 3.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  background-color: var(--light-surface);
}

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

.footer-logo-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.footer-brand p {
  margin-block-start: 0.5rem;
  font-size: 0.85rem;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

/* --- Responsive Layout Adjustments --- */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .hero-desc {
    margin-inline: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 300px;
    max-width: 500px;
    margin-inline: auto;
  }
  
  .showcase-card {
    width: 240px;
  }
  
  .philosophy-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .philosophy-image {
    order: -1;
    height: 250px;
  }
}

@media (max-width: 640px) {
  .header-container {
    height: 4rem;
  }
  
  .main-nav {
    display: none; /* simple mobile hide for a basic landing page */
  }
  
  .hero-section {
    padding-block-start: 6.5rem;
    padding-block-end: 4rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-visual {
    display: none; /* hide visual mockup card stack on small screens for layout cleaniness */
  }
  
  .about-card {
    padding: 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
