/* 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: 60px;
}

/* Hero Section */
.hero {
  padding: 0px 0 0px;
  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: 0px 0 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 {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Animated Logo Container */
.animated-logo-container {
  position: relative;
  height: 200px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 40px auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-square {
  position: absolute;
  width: 180px;
  height: 180px;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.blue-square {
  left: -210px; /* Start off-screen to the left */
  z-index: 2;
}

.red-square {
  right: -210px; /* Start off-screen to the right */
  z-index: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .animated-logo-container {
    height: 180px;
    max-width: 500px;
    margin-bottom: 30px;
  }
  
  .animated-square {
    width: 120px;
    height: 120px;
  }
  
  .blue-square {
    left: -150px;
  }
  
  .red-square {
    right: -150px;
  }
}

#about .surface .stack {
  gap: 12px;
}

/* About Us Section Layout */
.about-title {
  text-align: left;
  margin: 0 0 40px 0;
  padding: 0 20px;
  max-width: 1120px;
  width: 100%;
  display: block;
}

.about-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.about-text {
  text-align: justify;
  margin-bottom: 24px;
  line-height: 1.8;
  text-align-last: left;
}

/* Why We Are Unique Section */
.unique-title {
  text-align: left;
  margin: 0 0 40px 0;
  padding: 100px 20px 0 20px;
  max-width: 1120px;
  width: 100%;
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.unique-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.unique-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
  align-items: start;
  justify-content: center;
}

.unique-item {
  aspect-ratio: 1 / 1.3;
  border-left: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 0;
  height: auto;
  background: rgba(16, 34, 97, 0.03);
}

/* Staggered layout - 2nd and 4th items lower */
.unique-item:nth-child(2),
.unique-item:nth-child(4) {
  margin-top: 60px;
}

.unique-item:hover {
  border-left-color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.unique-item .unique-item-title {
  font-size: 20px !important;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.unique-item-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}

/* Responsive Design for Unique Section */
@media (max-width: 1024px) {
  .unique-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  /* Remove staggered effect on tablet */
  .unique-item:nth-child(2),
  .unique-item:nth-child(4) {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .unique-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .unique-title {
    font-size: 28px;
    margin: 0 0 30px 0;
    padding: 80px 20px 0 20px;
  }
  
  .unique-item {
    padding: 20px;
  }
  
  .unique-item .unique-item-title {
    font-size: 14px;
  }
  
  .unique-item-text {
    font-size: 14px;
  }
}

#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.5fr 0.6fr;
  gap: 40px;
  padding: 40px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}


.product-highlight .media {
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: var(--card);
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
  border: none;
  max-width: 280px;
  max-height: 280px;
  z-index: 1;
  opacity: 0;
  animation: fadeInIcon 1.5s ease-out 0.8s forwards;
}

.latest-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.latest-product-image:hover {
  transform: scale(1.1);
}

.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;
  transition: all 0.2s ease;
}

.btn-store:hover {
  transform: translateY(-1px);
}

.btn-store-ios { 
  background: #085ab3 !important; 
  border: 2px solid #085ab3 !important;
  color: white !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-store-ios:hover {
  background: white !important;
  color: #085ab3 !important;
  border-color: #085ab3 !important;
  transform: translateY(-1px);
}

.btn-store-android { 
  background: linear-gradient(135deg, #0c9d57 0%, #0c9d57 100%) !important; 
  border: 2px solid #0c9d57 !important;
  color: white !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.btn-store-android:hover {
  background: white !important;
  color: #0c9d57 !important;
  border-color: #0c9d57 !important;
  transform: translateY(-1px);
}

.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: 60px; }

/* Responsive */
@media (max-width: 992px) {
  .product-highlight { 
    grid-template-columns: 1fr; 
    padding: 32px;
    gap: 32px;
  }
  
  .product-highlight .media {
    max-width: 220px;
    max-height: 220px;
    margin: 0 auto;
  }
  
  .product-highlight .content {
    padding-left: 0;
    text-align: center;
    align-items: center;
  }
  
  .product-highlight .content .btn {
    align-self: center;
  }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero .headline { font-size: 40px; }
  
  /* Tablet Applications Layout */
  .application-card {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  
  .application-icon {
    width: 90px;
    height: 90px;
  }
  
  .application-buttons {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding-left: 110px;
  }
  
  /* Tablet Tools & Games Layout */
  .tool-card {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  
  .tool-icon {
    width: 90px;
    height: 90px;
  }
  
  .tool-buttons {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding-left: 110px;
  }
}

@media (max-width: 768px) {
  /* Mobile Header & Navigation */
  .header-inner {
    height: 64px;
  }
  
  .brand-logo {
    height: 40px;
  }
  
  .nav-links { 
    display: none; 
    position: absolute; 
    right: 20px; 
    top: 64px; 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 12px; 
    flex-direction: column; 
    width: 240px; 
    box-shadow: var(--shadow-lg); 
    z-index: 100;
  }
  
  .nav-links.open { display: flex; }
  
  .language-toggle {
    margin-left: 8px;
  }
  
  .lang-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  /* Mobile Hero Section */
  body {
    padding-top: 64px;
  }
  
  .hero {
    padding: 20px 0 40px;
  }
  
  .hero-content {
    gap: 32px;
  }
  
  .hero-text {
    text-align: center;
    max-width: 100%;
  }
  
  .hero .headline { 
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .hero .subtext {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .hero-text > div {
    display: flex;
    justify-content: center;
  }
  
  .btn-primary {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  /* Mobile Sections */
  .section { 
    padding: 40px 0 60px 0; 
  }
  
  .section h2 {
    font-size: 28px;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .section p.muted {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Mobile Product Highlight */
  .product-highlight {
    padding: 24px;
    gap: 24px;
  }
  
  .product-highlight .media {
    max-width: 180px;
    max-height: 180px;
  }
  
  .product-highlight .content h3 {
    font-size: 24px;
  }
  
  .product-highlight .content p {
    font-size: 15px;
  }
  
  .product-highlight .content .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 15px;
    justify-content: center;
    text-align: center;
  }
  
  .product-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Mobile Products Grid */
  .products-grid { 
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .product-card {
    grid-template-rows: 140px auto;
  }
  
  .product-card .body {
    padding: 16px;
  }
  
  .product-card .title {
    font-size: 16px;
  }
  
  .product-card .desc {
    font-size: 13px;
  }
  
  .store-buttons {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .btn-store {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Mobile Applications Layout */
  .applications-section {
    margin-bottom: 40px;
  }
  
  .section-subheading {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
  }
  
  .section-subheading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .application-card {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    padding: 20px 16px;
  }
  
  .application-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  .application-content {
    text-align: center;
  }
  
  .application-title {
    font-size: 16px;
  }
  
  .application-description {
    font-size: 13px;
  }
  
  .application-buttons {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    gap: 12px;
    width: 100%;
  }
  
  .btn-store {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    font-size: 14px;
    justify-content: center;
  }
  
  /* Mobile Tools & Games Layout */
  .tool-card {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    padding: 20px 16px;
  }
  
  .tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  .tool-content {
    text-align: center;
  }
  
  .tool-title {
    font-size: 16px;
  }
  
  .tool-description {
    font-size: 13px;
  }
  
  .tool-buttons {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    gap: 12px;
    width: 100%;
  }
  
  .tool-buttons .btn-primary {
    font-size: 14px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    max-width: 280px !important;
    justify-content: center !important;
  }
  
  .tool-buttons .btn-store {
    width: 100%;
    max-width: 280px;
  }
  
  /* Mobile About Section */
  .about-title {
    font-size: 28px;
    text-align: center;
    padding: 0 16px;
  }
  
  .about-content {
    padding: 0 16px;
  }
  
  .about-text {
    font-size: 15px;
    text-align: left;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  
  /* Mobile Contact Section */
  #contact .stack {
    padding: 16px !important;
  }
  
  #contact h2 {
    font-size: 28px;
    text-align: center;
  }
  
  #contact p.muted {
    text-align: center;
    font-size: 15px;
  }
  
  #contact strong {
    display: block;
    margin-bottom: 4px;
  }
  
  #contact .muted {
    display: block;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .social-btn {
    width: 40px;
    height: 40px;
  }
  
  /* Mobile Surface Cards */
  .surface {
    border-radius: 16px;
  }
  
  .stack {
    gap: 20px;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  color: var(--primary-blue);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/* Footer Styles */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner > div:first-child {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
  .site-footer {
    padding: 24px 0;
    margin-top: 40px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .footer-links {
    justify-content: center;
    gap: 16px;
  }
  
  .footer-links a {
    font-size: 13px;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .hero .headline {
    font-size: 24px;
  }
  
  .hero .subtext {
    font-size: 15px;
  }
  
  .section h2 {
    font-size: 24px;
  }
  
  .product-highlight .content h3 {
    font-size: 20px;
  }
  
  .application-card,
  .tool-card {
    padding: 16px 12px;
  }
  
  .btn-store {
    font-size: 13px;
    padding: 12px 16px;
    max-width: 100%;
  }
  
  .application-buttons,
  .tool-buttons {
    gap: 10px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}


/* Tools & Games Placeholder Cards */
.tools-placeholder {
  display: grid;
  grid-template-rows: 160px auto;
  border: 2px dashed var(--border-hover);
  border-radius: 16px;
  background: var(--bg-secondary);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.tools-placeholder .placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  color: var(--text-muted);
  font-size: 48px;
}

.tools-placeholder .placeholder-body {
  padding: 20px;
  text-align: center;
}

.tools-placeholder .placeholder-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tools-placeholder .placeholder-subtitle {
  font-size: 14px;
  color: var(--text-light);
}

.tools-placeholder .coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-blue);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Applications and Tools & Games Sections */
.applications-section {
  margin-bottom: 60px;
}

/* Applications Vertical List Layout */
.applications-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Desktop: 2 columns for applications */
@media (min-width: 769px) {
  .applications-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.application-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 120px;
}

.application-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.application-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.application-icon {
  width: 100px;
  height: 100px;
  background: var(--bg-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.application-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.application-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.application-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  transition: none;
  min-width: 120px;
}

.btn-store-ios {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-store-android {
  background: #0c9d57 !important;
  color: #fff !important;
  border-color: #0c9d57 !important;
}

.tools-games-section {
  margin-top: 0;
}

/* Tools & Games Vertical List Layout */
.tools-games-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Desktop: 2 columns for tools & games */
@media (min-width: 769px) {
  .tools-games-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 120px;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.tool-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tool-icon {
  width: 100px;
  height: 100px;
  background: var(--bg-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.tool-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.tool-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.tool-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}

.section-subheading {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 32px;
  text-align: left;
  position: relative;
  padding-bottom: 12px;
}

.section-subheading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Tools & Games Visit Website Button Styling */
.tool-buttons .btn-primary {
  background: white !important;
  color: var(--primary-blue) !important;
  border: 2px solid var(--primary-blue) !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.tool-buttons .btn-primary:hover {
  background: var(--primary-blue) !important;
  color: white !important;
  border-color: var(--primary-blue) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 34, 97, 0.3);
}

/* World of Word and AstroCalc Special Gradient Design */
#t6.tool-card, #t2.tool-card {
  background: var(--gradient-primary);
  border: none;
  color: white;
}

#t6.tool-card .tool-title, #t2.tool-card .tool-title {
  color: white;
}

#t6.tool-card .tool-description, #t2.tool-card .tool-description {
  color: rgba(255, 255, 255, 0.9);
}

#t6.tool-card:hover, #t2.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* App Icon Fade-In Animation */
@keyframes fadeInIcon {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hero Animation Styles */
.hero-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 600px;
}

#hero-svg {
  width: 100%;
  max-width: 850px;
  height: auto;
}

.phone-group path,
.laptop-group path {
  stroke: url(#lineGradient);
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#glow);
}

.app-icons rect,
.app-icons circle {
  transition: all 1s ease;
}

.app-icon-phone {
  fill: #0a1642;
  opacity: 0.9;
}

.app-icon-laptop {
  opacity: 0.95;
  transition: all 1s ease;
}

/* Gradient colors for laptop icons - blue to red across columns */
.app-icon-laptop.col-0 {
  fill: #102261; /* Primary blue - leftmost column */
}

.app-icon-laptop.col-1 {
  fill: #5d2f67; /* Blue-purple blend */
}

.app-icon-laptop.col-2 {
  fill: #a0384a; /* Purple-red blend */
}

.app-icon-laptop.col-3 {
  fill: #dc2626; /* Primary red - rightmost column */
}

/* Animation states */
.phone-group {
  opacity: 1;
  transition: opacity 1.2s ease;
}

.laptop-group {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.phone-group.fade-out {
  opacity: 0;
}

.laptop-group.fade-in {
  opacity: 1;
}

/* Responsive for hero animation */
@media (max-width: 768px) {
  .hero-animation {
    min-height: 350px;
  }
  
  #hero-svg {
    max-width: 400px;
  }
}


