:root {
  /* Primary Color Palette */
  --primary-1: #2a4a69;
  --primary-1-light: #517cc9;
  --primary-1-dark: #21395f;
  
  --primary-2: #2d8f69;
  --primary-2-light: #6cd993;
  --primary-2-dark: #3a8c57;
  
  --primary-3: #f4484b;
  --primary-3-light: #e57e7b;
  --primary-3-dark: #bc2635;
  
  --primary-4: #927ce4;
  --primary-4-light: #b9a7ff;
  --primary-4-dark: #7e5add;
  
  --primary-5: #fcbf46;
  --primary-5-light: #edb876;
  --primary-5-dark: #e9772e;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --black: #202730;
  --gray-100: #F7FAFC;
  --gray-200: #EDF2F7;
  --gray-300: #dae1e7;
  --gray-400: #d4d8db;
  --gray-500: #a8bfd6;
  --gray-600: #828eaf;
  --gray-700: #405569;
  --gray-800: #1f2738;
  --gray-900: #1a2026;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  font-size: 16px;
}

/* Typography */
h1 {
  font-size: 2.63rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-1);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.93rem;
  color: var(--primary-1);
}

h3 {
  font-size: 1.63rem;
  font-weight: 600;
  margin-bottom: 0.57rem;
  color: var(--primary-1-dark);
}

h4 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.60rem;
  color: var(--gray-700);
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Header */
.navbar {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  padding: 1rem 0;
  box-shadow: 0 7px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
  padding: 0.5rem 0;
  background: rgba(43, 67, 118, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-size: 1.58rem;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-5-light) !important;
}

/* Navbar Toggler */
.navbar-toggler {
  border: 2px solid var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  position: relative;
  background: transparent;
}

.navbar-toggler:focus {
  box-shadow: none;
  border-color: var(--primary-5-light);
}

.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 18px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  display: block;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: 0.3s ease-in-out;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

.navbar-toggler-icon {
  height: 2px;
  background-color: var(--white);
}

/* Hamburger Animation */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-1-light), var(--primary-2-light));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../TRE_images/hero-bg.webp') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  padding-top: 50px !important;
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.60rem;
}

.hero p {
  color: var(--white);
  font-size: 1.28rem;
  margin-bottom: 2rem;
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--primary-2);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.63rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 40px rgba(0,0,0,0.15);
}

.card-body {
  padding: 2rem;
}

/* Services */
.services-card {
  background: linear-gradient(135deg, var(--white), var(--gray-100));
  margin-bottom: 2rem;
}

.services-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-3);
  margin-bottom: 1rem;
}

/* Team */
.team-card {
  text-align: center;
  background: var(--white);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--primary-2-light);
}

/* Testimonials */
.testimonial-card {
  background: linear-gradient(135deg, var(--primary-4-light), var(--primary-5-light));
  color: var(--white);
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

/* FAQ */
.faq-card {
  margin-bottom: 1rem;
  background: var(--white);
}

.faq-question {
  background: var(--primary-1);
  color: var(--white);
  padding: 1rem;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
}

.faq-answer {
  padding: 1rem;
  background: var(--gray-100);
  border-radius: 0 0 10px 10px;
}

/* Contact Form */
.contact-form {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  padding: 3rem;
  border-radius: 15px;
  color: var(--white);
}

.form-control {
  border: none;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--white);
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-5);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-3), var(--primary-5));
  border: none;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-3-dark), var(--primary-5-dark));
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--primary-2-light);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-2-light);
}

/* Gallery */
.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-1-light), var(--primary-2-light));
}

/* Loading Animations */
.loaded {
  opacity: 1;
}

.lozad {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lozad.loaded {
  opacity: 1;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
:focus {
  outline: 2px solid var(--primary-5);
  outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-1);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Form improvements */
.form-control:invalid {
  border-color: var(--primary-3);
}

.form-control:valid {
  border-color: var(--primary-2);
}

/* Button focus and active states */
.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(82, 134, 215, 0.50);
}

.btn:active {
  transform: translateY(1px);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}



/* High contrast support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--gray-800);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-1-dark);
  }
} 


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
