/* ============================================
   KINTTALA GROUP - MODERN RESPONSIVE STYLES
   ============================================ */

/* Global Variables */
:root {
  --primary-color: #76b82a;
  --primary-dark: #5a8f20;
  --primary-light: #8cc73f;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  margin: 0 auto;
  border-radius: 2px;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white) !important;
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--primary-color) !important;
}

.logo-img {
  height: 40px;
  width: auto;
  filter: brightness(1.1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.btn-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  margin-left: 1rem;
}

.nav-link.btn-cta::after {
  display: none;
}

.nav-link.btn-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  background-image: 
    linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(44, 62, 80, 0.9) 100%),
    url('images/20230422_195931-scaled.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(118, 184, 42, 0.1) 0%, rgba(26, 26, 26, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-tagline {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay-1 {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Section Padding */
.section-padding {
  padding: 5rem 0;
}

/* Products Section */
.product-card {
  padding: 3rem;
  background: var(--white);
  border-radius: 16px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-image-wrapper {
  position: relative;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.product-icon-large {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.product-icon-large i {
  font-size: 5rem;
}

.product-logo-container {
  width: 280px;
  height: 280px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  background: var(--white);
  transition: var(--transition);
}

.product-logo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.product-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-item i {
  font-size: 1.25rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 1rem;
  color: var(--text-dark);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
}

/* Customers Section */
.customer-logo-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.9);
}

.customer-logo-wrapper.visible {
  opacity: 1;
  transform: scale(1);
}

.customer-logo-wrapper:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.customer-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--transition);
}

.customer-logo-wrapper:hover .customer-logo {
  filter: grayscale(0%);
}

/* Technology Section */
.tech-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.tech-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  font-size: 2rem;
  color: var(--white);
}

.tech-card h5 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
}

.integration-logo-wrapper {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.integration-logo-wrapper:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.integration-logo-wrapper img {
  margin-bottom: 0.5rem;
}

.integration-logo {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: 80px;
  object-fit: contain;
}

.integration-logo-wrapper p {
  flex-shrink: 0;
  margin-top: auto;
}

.integration-logo-wrapper a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  gap: 0.5rem;
}

.integration-logo-wrapper a:hover {
  text-decoration: none;
  color: inherit;
}

.integration-logo-wrapper a p {
  color: var(--text-dark);
  transition: var(--transition);
}

.integration-logo-wrapper:hover a p {
  color: var(--primary-color);
}

/* Contact Section */
.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--white);
}

.contact-card h5 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.contact-card a:hover {
  color: var(--primary-color) !important;
}

/* Footer */
.footer {
  background: #0d0d0d;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

.footer p {
  color: rgba(255, 255, 255, 0.9);
}

.footer-logo {
  height: 40px;
  width: auto;
}

/* Responsive Design */
@media (max-width: 991px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .product-card {
    padding: 2rem;
  }

  .product-icon-large {
    width: 150px;
    height: 150px;
  }

  .product-icon-large i {
    font-size: 3.5rem;
  }

  .product-logo-container {
    width: 220px;
    height: 220px;
  }

  .navbar-collapse {
    background: rgba(26, 26, 26, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }

  .nav-link.btn-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    display: inline-block;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-icon-large {
    width: 120px;
    height: 120px;
  }

  .product-icon-large i {
    font-size: 2.5rem;
  }

  .product-logo-container {
    width: 180px;
    height: 180px;
    padding: 1.5rem;
  }

  .customer-logo-wrapper,
  .integration-logo-wrapper {
    height: 120px;
  }

  .tech-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero-section {
    background-attachment: scroll;
  }

  .section-padding {
    padding: 2rem 0;
  }

  .product-card {
    padding: 1.5rem;
  }

  .hero-tagline {
    padding: 1rem;
  }

  .footer {
    text-align: center;
  }

  .footer .col-md-6 {
    text-align: center !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-indicator,
  .btn {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .section-padding {
    padding: 1rem 0;
  }
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth Loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Selection Color */
::selection {
  background: var(--primary-color);
  color: var(--white);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--white);
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

