/* === CSS RESET & VARIABLES === */
:root {
  --clr-bg: #0a0a0f;
  --clr-surface: #14141e;
  --clr-surface-light: #1e1e2d;
  
  --clr-text: #f0f0f4;
  --clr-text-muted: #9aa0a6;
  
  --clr-accent-1: #00e5ff; /* Automation Cyan */
  --clr-accent-2: #0077ff; /* Automation Blue */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* === LAYOUT UTILITIES === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header .line {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--clr-accent-1), var(--clr-accent-2));
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-header p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--clr-accent-1);
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--clr-accent-2);
  color: var(--clr-accent-2);
  transform: translateY(-3px);
}

/* === NAVBAR === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

header.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, var(--clr-accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--clr-accent-1);
  transition: width var(--transition-normal);
}

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

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem; /* Account for navbar */
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 15% 50%, rgba(0, 229, 255, 0.1), transparent 50%),
                    radial-gradient(circle at 85% 30%, rgba(0, 119, 255, 0.08), transparent 50%);
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  z-index: -1;
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-location {
  font-size: 1.1rem;
  color: var(--clr-text);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hero-location i {
  color: var(--clr-accent-1);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  justify-content: center;
}

.service-card {
  background: var(--clr-surface);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--clr-text-muted);
  transition: all var(--transition-normal);
  z-index: 2;
}

.automation-card::before {
  background: var(--clr-accent-1);
}


.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--clr-surface-light);
}

.service-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-bg-image {
  transform: scale(1.08);
}

.service-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.automation-card .service-icon {
  color: var(--clr-accent-1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}


.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

.service-contact {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-contact h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-muted);
  margin-bottom: 0.5rem;
}

.service-contact .name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 0.8rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  word-break: break-all;
}

.contact-link i {
  width: 16px;
  text-align: center;
}

.automation-card .contact-link:hover {
  color: var(--clr-accent-1);
}


/* === FOOTER === */
.footer {
  background: var(--clr-surface);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand h2 {
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--clr-text-muted);
  max-width: 300px;
  margin-bottom: 0.5rem;
}

.location-text {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: var(--clr-text);
  font-style: italic;
}

.y-tunnus {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5) !important;
  font-family: monospace;
  margin-top: 1rem;
}

.footer h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background: var(--clr-accent-1);
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer ul a {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.footer ul a:hover {
  color: var(--clr-accent-1);
  padding-left: 5px;
}

.fun-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fun-link i {
  color: var(--clr-accent-2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-links {
    display: none; /* Mobile menu can be added later if needed */
  }
}
