/* Collabry Website - Modern Light Theme */

:root {
  /* Primary Brand Colors - Based on Collabry Logo */
  --primary-blue: #102261;
  --primary-red: #dc2626;
  --primary-blue-light: #3b82f6;
  --primary-red-light: #ef4444;
  
  /* Light Theme Colors */
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  /* Card and Surface Colors */
  --card: #ffffff;
  --elevated: #f8fafc;
  --elevated-hover: #f1f5f9;
  
  /* Border and Divider Colors */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-hover: #cbd5e1;
  
  /* Text Colors */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Accent Colors */
  --accent: #10b981;
  --accent-light: #34d399;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
  --gradient-primary-hover: linear-gradient(135deg, var(--primary-blue) 0%, #5D80A9 100%);
  --gradient-blue: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  --gradient-red: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
  --gradient-subtle: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  background: var(--gradient-subtle);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;
}

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

a { color: inherit; text-decoration: none; }

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.site-header .container {
  padding-left: 0px;
  padding-right: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--elevated-hover);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.1);
  font-weight: 600;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.lang-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.lang-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Adjust for fixed header */
body {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 500px;
}

.hero .headline {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtext {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-weight: 400;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 80px 0;
  background: var(--gradient-subtle);
}

.section h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: left;
  margin: 0 0 16px;
  color: #102261;
  letter-spacing: -0.025em;
}

.section p.muted {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0 0 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About section specific styling */
#about .surface .stack {
  gap: 12px;
}

#about .surface p.muted {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  margin-bottom: 0;
}

#about .surface li.muted {
  text-align: left;
  color: var(--text-secondary);
}

#about .surface h3 {
  font-size: 28px;
  font-weight: 700;
  color: #102261;
  margin: 24px 0 16px 0;
}

/* Products section specific styling */
#products p.muted {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Contact section specific styling */
#contact h2 {
  text-align: left;
}

#contact p.muted {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

#contact .stack {
  gap: 12px;
}

#contact .btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-weight: normal;
  box-shadow: none;
}

#contact .btn:hover {
  background: none;
  transform: none;
  box-shadow: none;
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Surface Cards */
.surface {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.surface:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stack { display: grid; gap: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  background: var(--elevated-hover);
}

.btn-primary { 
  background: var(--gradient-primary); 
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Product Highlight Card */
.product-highlight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 40px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.product-highlight::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(100% 0%, 0% 100%, 100% 50%);
  z-index: 0;
  pointer-events: none;
}

.product-highlight::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(100% 100%, 0% 0%, 100% 0%);
  z-index: 0;
  pointer-events: none;
}

.product-highlight .media {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: var(--card);
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid #162260;
  max-width: 280px;
  max-height: 280px;
  z-index: 1;
}

.latest-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

.product-highlight .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  padding-left: 20px;
  position: relative;
  z-index: 1;
}

/* Product Highlight Content */
.product-highlight .content .eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 14px;
  text-transform: uppercase;
}

/* NEW Ribbon Style */
.product-highlight .content .eyebrow.ribbon {
  position: relative;
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

.product-highlight .content .eyebrow.ribbon::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 16px 0;
  border-color: transparent var(--primary-blue) transparent transparent;
}

.product-highlight .content .eyebrow.ribbon::after {
  content: '';
  position: absolute;
  left: -8px;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 8px 0 0;
  border-color: var(--primary-red) transparent transparent transparent;
}

.product-highlight .content h3 {
  margin: 8px 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.product-highlight .content p { 
  color: rgba(255, 255, 255, 0.9); 
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  text-align: left;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 600;
}

.product-highlight .badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: grid;
  grid-template-rows: 160px auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover { 
  transform: translateY(-4px); 
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-xl);
}

.product-card .thumb {
  border-bottom: 1px solid var(--border);
  background: var(--gradient-subtle);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.product-card .body { 
  padding: 20px; 
  background: var(--card);
}

.product-card .title { 
  margin: 0; 
  font-size: 18px; 
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.product-card .desc { 
  margin: 8px 0 0; 
  color: var(--text-secondary); 
  font-size: 14px;
  line-height: 1.5;
}

.title-row { 
  display: grid; 
  grid-template-columns: 1fr auto; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 8px; 
}

.store-buttons { 
  display: flex; 
  gap: 8px; 
  align-items: center; 
  margin-top: 16px; 
}

.btn-store {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  border-radius: 8px;
}

.btn-store-ios { 
  background: var(--gradient-blue); 
  border: none;
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-store-android { 
  background: linear-gradient(135deg, #095B07 0%, #499c47 100%); 
  border: none;
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-store-ios:hover { 
  background: white;
  color: #102261;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-store-android:hover { 
  background: white;
  color: #102261;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Hover-reveal variant for special products */
.product-card[data-variant="hover-reveal"] {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  min-height: 280px;
  aspect-ratio: 1 / 1;
}

.product-card[data-variant="hover-reveal"] .media {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(1);
  transition: filter 0.25s ease;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.product-card[data-variant="hover-reveal"] .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  align-items: end;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.product-card[data-variant="hover-reveal"]:hover .overlay { opacity: 1; }
.product-card[data-variant="hover-reveal"]:hover .media { filter: brightness(0.4); }

.product-card[data-variant="hover-reveal"] .overlay-body {
  padding: 20px;
}

.product-card[data-variant="hover-reveal"] .overlay-body .title {
  color: white;
  margin-bottom: 8px;
}

.product-card[data-variant="hover-reveal"] .overlay-body .desc {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.product-card[data-variant="hover-reveal"] .overlay-body .badge {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.product-highlight .content .btn {
  padding: 12px 20px;
  font-size: 15px;
  align-self: flex-start;
  margin-top: 24px;
  font-weight: 600;
  background: white;
  color: var(--primary-blue);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: none;
  box-shadow: var(--shadow-sm);
}

.product-highlight .content .btn:hover {
  background: var(--gradient-primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Utilities */
.muted { color: var(--text-muted); }
.spacer { height: 16px; }

/* Smooth scroll and offset for sticky header */
html { scroll-behavior: smooth; }
.section, .hero { scroll-margin-top: 80px; }

/* Responsive */
@media (max-width: 992px) {
  .product-highlight { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero .headline { font-size: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; right: 20px; top: 72px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; flex-direction: column; width: 240px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .hero .headline { font-size: 32px; }
  .section { padding: 60px 0; }
  .hero { padding: 100px 0 60px; }
}


