/* Aerospace Blue Architecture Studio Theme - CSS */

/* CSS Variables for Theme Colors */
:root {
  --primary-color: #1E3A5F;
  --secondary-color: #00A8CC;
  --primary-light: #2D4A70;
  --secondary-light: #33B8D6;
  --primary-dark: #152B45;
  --secondary-dark: #0090B3;
  --text-light: #FFFFFF;
  --text-dark: #2C3E50;
  --text-muted: #6C757D;
  --background-light: #F8FAFC;
  --background-white: #FFFFFF;
  --shadow-light: rgba(30, 58, 95, 0.1);
  --shadow-medium: rgba(30, 58, 95, 0.15);
  --shadow-heavy: rgba(30, 58, 95, 0.25);
  --border-color: #E5E7EB;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  --gradient-hero: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
  overflow-x: hidden;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-dark);
  text-decoration: none;
}

/* Bootstrap 5 Overrides */
.btn {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
  color: var(--text-light);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--text-light);
  border: 2px solid transparent;
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 204, 0.3);
  color: var(--text-light);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px var(--shadow-medium);
}

.card-body {
  padding: 2rem;
}

/* Navigation */
.navbar {
  background: var(--background-white);
  box-shadow: 0 2px 20px var(--shadow-light);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color);
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
  background: rgba(0, 168, 204, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Mobile Navigation */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--background-light);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--background-white);
  z-index: 1050;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 500;
}

.mobile-menu .nav-link:hover {
  color: var(--secondary-color);
  background: none;
}

.mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.hero-title {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
  animation: fadeInUp 1s ease 0.6s both;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

/* Services Section */
.service-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: var(--background-white);
  box-shadow: 0 8px 30px var(--shadow-light);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px var(--shadow-medium);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotateY(180deg);
}

/* Portfolio Grid */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow-light);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px var(--shadow-medium);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 0.95;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1);
}

.portfolio-title {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: all 0.3s ease 0.1s;
}

.portfolio-category {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  transition: all 0.3s ease 0.2s;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-category {
  transform: translateY(0);
}

/* Team Section */
.team-member {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: var(--background-white);
  box-shadow: 0 8px 30px var(--shadow-light);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px var(--shadow-medium);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  object-fit: cover;
  border: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.team-member:hover .team-photo {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--background-light);
  color: var(--text-muted);
  border-radius: 50%;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-section {
  background: var(--background-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--background-white);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 204, 0.2);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-success {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: var(--text-light);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 168, 204, 0.3);
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.bg-primary {
  background: var(--gradient-primary);
}

.bg-secondary {
  background: var(--gradient-secondary);
}

.bg-light {
  background: var(--background-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    padding: 2rem 0;
    text-align: center;
  }
  
  .service-card,
  .team-member {
    margin-bottom: 2rem;
  }
  
  .portfolio-item {
    margin-bottom: 1.5rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-buttons .btn {
    display: inline-block;
    width: auto;
    margin: 0.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .service-card,
  .team-member {
    padding: 1.5rem 1rem;
  }
  
  .portfolio-image {
    height: 200px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu,
  .hero-section,
  .footer {
    display: none;
  }
  
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
}