/* Main Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
    padding-top: 65px; /* Abstand für die Navbar */
}

/* Stellt sicher, dass alle Abschnitte genug Abstand nach oben haben */
section {
    padding-top: 20px; /* Reduziertes Padding, da wir jetzt mit margin arbeiten */
    margin-top: 0; /* Kein negativer Margin mehr */
}

.hero-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    margin-top: 0; /* Kein negativer Margin mehr */
    padding-top: 0; /* Kein zusätzliches Padding mehr */
}

.project-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.highlight {
    color: #60a5fa;
}

/* Tech badge styles moved to chatbot-styles.css */

.contact-form input, .contact-form textarea, .contact-form select {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    color: #f1f5f9;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #60a5fa;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Anker-Links Offset für die fixierte Navbar */
html {
    scroll-padding-top: 80px; /* Größer als die Navbar-Höhe */
    scroll-behavior: smooth;
}

/* Fixed header styles */
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 9999; /* Höherer z-index um sicherzustellen, dass die Navbar immer oben ist */
    background-color: rgba(15, 23, 42, 0.95); /* Dunklerer Hintergrund */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
}

.tech-icon-container {
    transition: all 0.3s ease;
}

.tech-icon-container:hover {
    transform: translateY(-5px);
}

/* Mobile responsive text sizes */
@media (max-width: 640px) {
  .bg-slate-900 h4.text-xl {
    font-size: 1rem; /* Smaller font size on mobile */
    word-break: break-word; /* Allows words to break if needed */
  }
  
  /* Fix for long text in about section cards */
  .bg-slate-900 p.text-gray-400 {
    font-size: 0.875rem; /* Smaller font size */
    word-break: break-word; /* Allow words to break if needed */
    hyphens: auto; /* Enable hyphenation */
  }
}

/* Mobile menu styling */
#mobile-menu {
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e293b;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

#mobile-menu a {
  padding: 0.75rem 1rem;
  display: block;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

#mobile-menu a:hover {
  background-color: rgba(30, 41, 59, 0.5);
  border-left: 3px solid #60a5fa;
  padding-left: 1.25rem;
}

/* Mobile navigation helper */
.mobile-nav-helper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-helper {
    display: block;
  }
  
  .mobile-nav-helper-button {
    width: 50px;
    height: 50px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: white;
    cursor: pointer;
  }
  
  .mobile-nav-helper-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.5rem;
    width: 160px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  .mobile-nav-helper-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #f1f5f9;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
  }
  
  .mobile-nav-helper-menu a:hover {
    background-color: rgba(59, 130, 246, 0.2);
  }
}
