/* main.css – Tech-stil med premium design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --primary: #f4b400;
  --bg: #121212;
  --bg-soft: #1c1c1e;
  --text: #ffffff;
  --muted: #aaa;
  --card-glow: rgba(244, 180, 0, 0.25);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: url("images/tech.jpg") center center / cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #f4b400, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--card-glow);
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #d99d00;
}

/* Features */
.features {
  padding: 5rem 0;
  background: var(--bg-soft);
  text-align: center;
}

.features h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #1e1e22;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2a2a2d;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--card-glow);
}

.card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
}

/* About Preview */
.about-preview {
  padding: 4rem 0;
  background: #181818;
  text-align: center;
}

.about-preview h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-preview p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-secondary {
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  color: var(--primary);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #000;
}

/* Kontakt */
.contact-section {
  padding: 4rem 0;
  background: var(--bg);
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-section form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-section input,
.contact-section textarea {
  background: #1c1c1e;
  border: 1px solid #333;
  padding: 1rem;
  font-size: 1rem;
  color: #fff;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s;
}

.contact-section input:focus,
.contact-section textarea:focus {
  border-color: var(--primary);
}

.contact-section button {
  background: var(--primary);
  color: #000;
  padding: 0.75rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-section button:hover {
  background: #d99d00;
}

/* Footer */
footer {
  background: #111;
  color: #777;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Animationer */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivitet */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
