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

:root {
  --primary-dark: #0D1B3D;
  --primary-blue: #1E3A8A;
  --accent-orange: #FF6A00;
  --bg-light: #F2F4F7;
  --white: #FFFFFF;
  --text-main: #1A1A1A;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
  color: var(--text-muted);
  font-weight: 400;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(255, 106, 0, 0.39);
}

.btn-primary:hover {
  background-color: #e65c00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.23);
}

.btn-secondary {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px; /* Adjust based on actual aspect ratio */
  width: auto;
  object-fit: contain;
}

.logo-dark-img { display: block; }
.logo-light-img { display: none; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-dark);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Header Light Variant for dark backgrounds */
.header.header-light:not(.scrolled) .logo-dark-img { display: none; }
.header.header-light:not(.scrolled) .logo-light-img { display: block; }

.header.header-light:not(.scrolled) .nav-link,
.header.header-light:not(.scrolled) .mobile-menu-btn {
  color: var(--white);
}

.header.header-light:not(.scrolled) .btn-primary {
  background-color: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.39);
}

.header.header-light:not(.scrolled) .btn-primary:hover {
  background-color: var(--bg-light);
  color: var(--primary-blue);
}

/* Hero Section */
.hero {
  padding: 12rem 0 8rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tagline-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary-blue);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-image-wrapper {
  margin-top: 4rem;
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-10px);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections General */
.section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: 1rem;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 138, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(30, 58, 138, 0.05);
  color: var(--primary-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary-blue);
  color: var(--white);
}

.feature-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Products Section */
.products {
  background-color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-light);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-content {
  padding: 2rem;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-price span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.product-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* App Experience Section */
.app-section {
  padding: 8rem 0;
  background: var(--primary-dark);
  color: var(--white);
  overflow: hidden;
}

.app-section .section-title,
.app-section p {
  color: var(--white);
}

.app-section .section-title {
  color: var(--white);
}

.app-section p {
  color: rgba(255, 255, 255, 0.7);
}

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

.app-content {
  padding-right: 2rem;
}

.app-features {
  margin-top: 2rem;
}

.app-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.app-feature-text h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.app-image {
  position: relative;
}

.app-mockup {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 8px solid var(--text-main);
}

/* Community Section */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.community-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 360px;
  cursor: pointer;
}

.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.community-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 61, 0.9) 0%, rgba(13, 27, 61, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.community-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.community-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Why Workyu */
.why-workyu {
  background-color: var(--white);
}

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

.why-item {
  text-align: center;
  padding: 2rem;
}

.why-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

.why-item:hover .why-icon {
  background: var(--primary-dark);
  color: var(--white);
  transform: scale(1.1);
}

.why-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.rating {
  color: #FBBF24;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h5 {
  margin: 0;
  font-size: 1rem;
}

.author-info p {
  margin: 0;
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="2"/></svg>') repeat;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background-color: #081126; /* Darker than primary-dark */
  color: var(--white);
  padding: 6rem 0 2rem;
}

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

.footer-brand .logo {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-brand .logo-dark-img { display: none; }
.footer-brand .logo-light-img { display: block; }

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-orange);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

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

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  .features-grid, .products-grid, .community-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-content {
    padding-right: 0;
  }
  .app-feature {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .header.header-light:not(.scrolled) .nav-link {
    color: var(--primary-dark);
  }
  
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .hero {
    padding: 10rem 0 5rem;
  }
  
  .features-grid, .products-grid, .community-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Pages - About */
.page-header {
  padding: 10rem 0 5rem;
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

/* Pages - Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(30, 58, 138, 0.05);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

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

.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--bg-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .about-content, .contact-grid {
    grid-template-columns: 1fr;
  }
}
