/* Reset and base styles */
:root {
  /* Main color variables */
  --dark-bg: #0c111b;
  --dark-card: #111827;
  --text-white: #ffffff;
  --text-gray: #a0aec0;
  --accent-blue: #3498db;
  --accent-light-blue: #60a5fa;
  
  /* Additional color variables */
  --color-primary: #0ea5e9;
  --color-secondary: #8b5cf6;
  --color-dark-50: #0f172a;
  --color-dark-100: #1e293b;
  --color-dark-200: #334155;
  --color-dark-300: #475569;
  --color-dark-400: #64748b;
}

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

/* Document element styles */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Poppins, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.6;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(12, 17, 27, 0.8);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
}

.main-navigation {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-white);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-blue);
}

/* Utility classes */
/* Layout and positioning */
.flex {
  display: flex;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-50 {
  z-index: 50;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.overflow-hidden {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* Hero section */
.hero {
  position: relative;
  height: 75vh; /* Reduced from 100vh to 75vh */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/background.jpeg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-gradient-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.7), rgba(3, 7, 18, 0.3), rgba(3, 7, 18, 0.7));
}

.hero-gradient-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(3, 7, 18, 0.1), rgba(14, 165, 233, 0.1), rgba(3, 105, 161, 0.1));
  animation: gradient 12s ease infinite;
  background-size: 200% 200%;
}

.hero-gradient-3 {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 60%);
  animation: pulse 8s ease-in-out infinite alternate;
}

.hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  position: relative;
  z-index: 1;
  background: rgba(12, 17, 27, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  border: 1px solid rgba(54, 162, 235, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(54, 162, 235, 0.3);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #60a5fa, #ffffff, #a0aec0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 8s ease infinite;
  background-size: 200% auto;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-white);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Portfolio section */
.portfolio {
  padding: 6rem 0;
  background-color: var(--dark-bg);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-white);
}

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

.portfolio-item {
  background-color: var(--dark-card);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  background-size: 40px;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio-icon-1 {
  background-color: rgba(54, 162, 235, 0.2);
  background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22none%22 viewBox=%220 0 24 24%22 stroke=%22%2336A2EB%22%3E%3Cpath stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22 d=%22M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z%22 /%3E%3C/svg%3E');
}

.portfolio-icon-2 {
  background-color: rgba(54, 162, 235, 0.2);
  background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22none%22 viewBox=%220 0 24 24%22 stroke=%22%2336A2EB%22%3E%3Cpath stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22 d=%22M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10%22 /%3E%3C/svg%3E');
}

.portfolio-icon-3 {
  background-color: rgba(54, 162, 235, 0.2);
  background-image: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 fill=%22none%22 viewBox=%220 0 24 24%22 stroke=%22%2336A2EB%22%3E%3Cpath stroke-linecap=%22round%22 stroke-linejoin=%22round%22 stroke-width=%222%22 d=%22M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z%22 /%3E%3C/svg%3E');
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.portfolio-description {
  color: var(--text-gray);
  line-height: 1.6;
}

/* About section */
.about {
  position: relative;
  padding: 6rem 0;
}

.about-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  z-index: -1;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-white);
  text-align: center;
}

/* Footer */
footer {
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  padding: 3rem 0;
  border-top: 1px solid rgb(30, 41, 59);
}

/* Sizing and container utilities */
.max-w-7xl {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-lg {
  max-width: 32rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.w-full {
  width: 100%;
}

.gap-8 {
  gap: 2rem;
}

/* Typography utilities */
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.text-white {
  color: white;
}

.text-gray-200 {
  color: #e5e7eb;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: rgb(156, 163, 175);
}

.text-green-400 {
  color: #34d399;
}

.text-red-400 {
  color: #f87171;
}

.text-transparent {
  color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Impressum page */
.impressum-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.impressum-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-white);
  text-align: center;
}

.impressum-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-white);
  padding: 0 2rem;
}

.impressum-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-light-blue);
}

.impressum-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* Spacing utilities */
.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.h-6, .w-6 {
  height: 1.5rem;
  width: 1.5rem;
}

.h-12 {
  height: 3rem;
}

.w-12 {
  width: 3rem;
}

.h-16 {
  height: 4rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

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

.mb-4 {
  margin-bottom: 1rem;
}

/* Background and border utilities */
.bg-dark-50\/50 {
  background-color: rgba(15, 23, 42, 0.5);
}

.bg-dark-100\/80 {
  background-color: rgba(30, 41, 59, 0.8);
}

.bg-dark-200\/80 {
  background-color: rgba(51, 65, 85, 0.8);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.bg-cover {
  background-size: cover;
}

.bg-center {
  background-position: center;
}

.brightness-50 {
  filter: brightness(0.5);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border {
  border: 1px solid;
}

.border-t {
  border-top-width: 1px;
}

.border-dark-300 {
  border-color: var(--color-dark-300);
}

.border-dark-400 {
  border-color: rgb(51, 65, 85);
}

.border-primary\/20 {
  border-color: rgba(14, 165, 233, 0.2);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--color-primary), var(--color-secondary));
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Shadow and transition utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-primary\/20 {
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.transform {
  transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

/* Interactive state utilities */
.hover\:text-primary:hover {
  color: var(--color-primary);
}

.hover\:border-primary\/50:hover {
  border-color: rgba(14, 165, 233, 0.5);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-primary\/40:hover {
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4);
}

.hover\:-translate-y-0\.5:hover {
  transform: translateY(-0.125rem);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover-text-primary:hover {
  color: var(--accent-blue);
  transition: color 0.3s ease;
}

.active\:translate-y-0:active {
  transform: translateY(0);
}

.focus\:border-primary:focus {
  border-color: var(--color-primary);
}

.focus\:ring-primary:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.5);
}

.group:hover .group-hover\:border-primary\/50 {
  border-color: rgba(14, 165, 233, 0.5);
}

/* Special Animations */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.4;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

@keyframes wave {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-wave {
  animation: wave 4s ease-in-out infinite;
}

/* Form elements */
input, textarea {
  width: 100%;
  padding: 0.5rem;
  background-color: rgba(51, 65, 85, 0.8);
  border: 1px solid var(--color-dark-300);
  color: white;
  border-radius: 0.5rem;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.5);
}

button {
  cursor: pointer;
}

/* Media Queries */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .sm\:text-5xl {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .md\:text-6xl {
    font-size: 3.75rem;
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-description {
    font-size: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}