/* Base styles */
:root {
  --blue-700: #0057B8;
  --blue-800: #004494;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  margin: 0;
  color: var(--gray-900);
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  z-index: 50;
  transition: all 0.3s;
  padding: 1.25rem 0;
}

.header.scrolled {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0.75rem 0;
}

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

.logo {
  height: 3rem;
}

.contact-button {
  background: var(--blue-700);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-button:hover {
  background: var(--blue-800);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  color: white;
}

.hero-text {
  max-width: 32rem;
}

.hero-title {
  font-family: 'visby-cf', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

.hero-description {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.3s forwards;
}

.hero-button {
  display: inline-block;
  background: var(--blue-700);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s;
  opacity: 0;
  animation: fadeIn 1s ease-in-out 0.6s forwards;
}

.hero-button:hover {
  background: var(--blue-800);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background: var(--gray-50);
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--gray-600);
  max-width: 36rem;
  margin: 0 auto;
}

.project-card {
  max-width: 42rem;
  margin: 0 auto;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-0.5rem);
}

.project-image {
  height: 14rem;
  width: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-detail {
  display: flex;
  align-items: center;
  color: var(--gray-600);
}

.project-detail svg {
  margin-right: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  background: #EBF5FF;
  color: var(--blue-700);
  padding: 0.75rem;
  border-radius: 9999px;
  margin-right: 1rem;
}

.contact-text h4 {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.contact-text p {
  color: var(--gray-600);
  margin: 0;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  color: var(--gray-700);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 0.1rem 0.75rem 0.50rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  /*width: 100%;*/
  font-family: inherit;
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-submit {
  background: var(--blue-700);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.form-submit:hover {
  background: var(--blue-800);
}

/* Footer */
.footer {
  background: var(--gray-100);
  padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-logo {
  height: 2.5rem;
  /*margin-bottom: 1rem;*/
}

.footer-info {
  color: var(--gray-800);
  font-weight: 300;
}

.footer-links {
  text-align: right;
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li:not(:last-child) {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--blue-700);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #E5E7EB;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}

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