/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&family=Manrope:wght@300;400;600&display=swap');

/* Base Styles */
:root {
  --accent: #FF6E40;
  --dark: #212121;
  --light: #FAFAFA;
  --mid: #757575;
  --light-accent: rgba(255, 110, 64, 0.15);
  --gradient: linear-gradient(135deg, var(--accent), #FF9E80);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 5rem;
  lang: en-GB;
}

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

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p, ul, ol {
  margin-bottom: 1rem;
}

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

a:hover, a:focus {
  color: var(--dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn:hover, .btn:focus {
  background: var(--dark);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

section {
  padding: clamp(3rem, 10vh, 8rem) 0;
  position: relative;
}

/* SVG Icons */
.hidden {
  display: none;
}

svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Header & Navigation */
header {
  background-color: rgba(250, 250, 250, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(2rem, 5vw, 4rem);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
}

.nav-links a:hover, .nav-links a:focus {
  color: var(--accent);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: url('images/hero-iot.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--light);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
  max-width: 800px;
  color: white;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Services Section */
.services {
  background-color: var(--light);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:hover {
  transform: rotateY(8deg) translateY(-10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient);
  z-index: -1;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  transform: scale(1.1);
}

/* Process Section */
.process {
  background-color: var(--light-accent);
  position: relative;
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
  padding: clamp(5rem, 15vh, 10rem) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  counter-reset: process-counter;
}

.process-step {
  position: relative;
  padding-left: 3rem;
  counter-increment: process-counter;
}

.process-step::before {
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* Portfolio Section */
.portfolio {
  background-color: var(--light);
}

.portfolio-masonry {
  column-count: 3;
  column-gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.portfolio-item img {
  display: block;
  width: 100%;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

/* Contact Section */
.contact {
  background-color: var(--light-accent);
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  padding-top: clamp(5rem, 15vh, 10rem);
}

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

.contact-info {
  position: relative;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--light-accent);
}

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

/* Thank You Message */
.thank-you-message {
  text-align: center;
  padding: 2rem 1rem;
}

.thank-you-content {
  animation: fadeIn 0.5s ease-in-out;
}

.thank-you-content h3 {
  color: var(--accent);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.thank-you-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.company-info p {
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.footer-links a {
  color: white;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.accent {
  color: var(--accent);
}

.section-title {
  display: inline-block;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  height: 4px;
  width: 60px;
  background: var(--gradient);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Voice Wave Animation */
.voice-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  opacity: 0.05;
  background-image: url('images/voice-pattern.svg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  pointer-events: none;
}

/* Placeholder Page Styles */
.placeholder-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .service-card:hover,
  .btn:hover,
  .portfolio-item:hover img,
  .portfolio-item:hover .portfolio-overlay {
    transform: none !important;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .portfolio-masonry {
    column-count: 2;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 4rem;
    right: -100%;
    flex-direction: column;
    background: white;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 4rem);
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .portfolio-masonry {
    column-count: 1;
  }
} 