/* Perustyyli */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #0b0b0b;
  color: #eee;
  line-height: 1.6;
}

/* Navigaatio */
header {
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(6px);
}

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

.logo {
  font-weight: 800;
  font-size: 1.7rem;
  color: #e60000;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.logo::after {
  content: "█";
  animation: blink 1s infinite;
  margin-left: 3px;
  color: #fff;
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #eee;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e60000;
}

/* Hero */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
              url("../images/hero.jpg") no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: red; /* kiinteä punainen */
    letter-spacing: 8px;
}

.hero p {
  font-size: 1.3rem;
  margin-top: 1rem;
  color: #ddd;
}

@keyframes glitch {
  0% { text-shadow: 2px 2px #000, -2px -2px #e60000; }
  25% { text-shadow: -2px -2px #000, 2px 2px #e60000; }
  50% { text-shadow: 2px -2px #000, -2px 2px #e60000; }
  100% { text-shadow: -2px 2px #000, 2px -2px #e60000; }
}

/* Painikkeet */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: #e60000;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(230,0,0,0.6);
  transition: 0.3s;
}

.btn:hover {
  background: #ff1a1a;
  box-shadow: 0 0 25px rgba(230,0,0,0.9);
}

/* Osiot */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.section.dark {
  background: #161616;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #e60000;
  text-transform: uppercase;
}

/* Kortit */
.services-grid, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service, .portfolio-item {
  background: rgba(20,20,20,0.85);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 15px rgba(255,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover, .portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(230,0,0,0.6);
}

.portfolio-item img {
  width: 100%;
  border-radius: 10px;
}

/* Lomake */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.contact-form .neural-btn {
    margin-top: 10px;
    align-self: center; /* keskittää napin lomakkeessa */
}



/* Footer */
footer {
  background: #000;
  padding: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

/* Hero subtitle */
.hero p {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #ff4444; /* punertava sävy, ei vilkkumista */
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* Hero button */
.hero .btn {
    display: inline-block;
    margin-top: 30px;
    font-family: 'Audiowide', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #ff4444; /* punainen nappi */
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .btn:hover {
    background-color: #cc0000; /* tumma punainen hover-efekti */
    transform: scale(1.05);
}

/* Mobiiliversio alkaa   */
/* ===================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }
    .hero p {
        font-size: 1rem;
        margin-top: 15px;
        line-height: 1.4;
    }
    .hero .btn {
        font-size: 0.85rem;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero .btn {
        font-size: 0.8rem;
        padding: 10px 25px;
    }
}
/* ===================== */
/* Mobiiliversio loppuu  */
