/* 
 * Sentinel Dienstleistungen - Premium Design
 * 2024 Redesign
 */

:root {
  /* Color Palette */
  --primary-color: #0F172A;
  /* Deep Navy Blue */
  --primary-light: #1E293B;
  --secondary-color: #334155;
  /* Slate Grey */
  --accent-color: #F59E0B;
  /* Amber/Gold for CTAs */
  --accent-hover: #D97706;
  --text-main: #334155;
  --text-light: #64748B;
  --bg-light: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-dark: #020617;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --gradient-accent: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --gradient-text: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 100px 0;
  position: relative;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

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

.text-gradient {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.sub-heading {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
  padding: 5px 10px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  /* Pill shape */
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  gap: 10px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Glow Effect */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-primary.glow-effect:hover::after {
  left: 150%;
  transition: 0.7s;
}

/* Header */
header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  /* Smooth transition for height/padding */
}

header.shrink {
  height: 60px;
  /* Smaller height on scroll */
  background: rgba(255, 255, 255, 0.85);
  /* Semi-transparent */
  backdrop-filter: blur(10px);
  /* Blur effect */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.glass-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

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

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  color: var(--secondary-color);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomInHero {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url('../images/hero-new.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  animation: zoomInHero 10s ease-out forwards;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.3) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  color: white;
  margin-bottom: 25px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* About Section */
.about {
  background-color: var(--bg-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

.about-image {
  position: relative;
}

.about-image .image-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  transition: var(--transition);
}

.about-image:hover .image-wrapper {
  transform: rotate(0deg) scale(1.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.stat-item {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Services */
.services {
  background-color: var(--bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay i {
  color: white;
  font-size: 3rem;
  transform: scale(0);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .card-overlay i {
  transform: scale(1);
}

.service-info {
  padding: 35px;
}

.service-info h3 {
  margin-bottom: 15px;
  font-size: 1.35rem;
}

.service-info p {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1rem;
}

.service-link {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Process Section */
.process-section {
  background: white;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
  position: relative;
}

.process-item {
  text-align: center;
  padding: 30px 20px;
  position: relative;
  z-index: 2;
}

.process-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

/* Features/Why Us */
.features {
  background-color: var(--primary-color);
  color: white;
  background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('../images/hero.jpg');
  background-size: cover;
  background-attachment: fixed;
}

.features h2 {
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
}

.feature-item h3 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 15px;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.7);
}

/* Contact/Footer */
.contact-form-wrapper {
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--accent-color);
  /* Matches button/logo base color */
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  /* Ensure transform works */
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
  transform: translateX(5px);
}

/* Ensure contact links also have hover */
.footer-col ul li {
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col ul li:hover {
  color: white;
}

.footer-col a:hover img {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom a:hover {
  color: var(--accent-color) !important;
  text-decoration: none !important;
}

/* Animations */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="zoom-in"] {
  transform: scale(0.9);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0) scale(1);
}


/* Responsive */
@media (max-width: 991px) {
  h1 {
    font-size: 3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image {
    order: -1;
  }

  .image-wrapper {
    transform: rotate(0);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
  }

  .menu-toggle {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}