/* Phoenix Defence Main Stylesheet */

/* Global styles */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #28a745;
  --border-radius: 0.25rem;
  --box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Hero section styling */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/static/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
}

.hero-title-container {
  position: relative;
  display: block;
  text-align: center;
}

.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: auto;
  opacity: 0.15;
  z-index: -1;
}

.hero-title-container h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
}

.quote-container {
  display: inline-block;
  text-align: left;
}

/* Card hover effects */
.card {
  transition: var(--transition);
}

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

/* Custom button styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

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

/* Section spacing */
section {
  padding: 5rem 0;
}

/* Footer styling */
footer {
  background-color: var(--dark-color);
}

footer a {
  transition: var(--transition);
}

footer a:hover {
  color: white !important;
  text-decoration: none;
}

/* Navigation active link */
.navbar-dark .navbar-nav .nav-link.active {
  color: white;
  font-weight: bold;
}

/* Contact form */
.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

.sml-lft {
  margin-left: 15vw;
}

#splash {
  min-height: 80vh;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .sml-lft {
    margin-left: 0;
  }

  .hero-section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }

  #splash {
    min-height: 50vh;
  }

  .hero-logo-bg {
    width: 350px;
    opacity: 0.1;
  }
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.5s ease-out forwards;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Custom icons coloring */
.text-primary {
  color: var(--primary-color) !important;
}

/* Custom background for sections */
.bg-light {
  background-color: #f8f9fa !important;
}

/* Social media icon hover effects */
.fab {
  transition: var(--transition);
}

.fab:hover {
  transform: scale(1.2);
}
