/* ============================================= */
/* Towering Technics - Main Stylesheet */
/* ============================================= */

:root {
  /* Color Scheme */
  --primary: #0066cc;       /* Vibrant blue */
  --primary-light: #e6f2ff; /* Light blue */
  --primary-dark: #004d99;  /* Dark blue */
  --secondary: #ff9900;     /* Orange accent */
  --accent: #00cc99;        /* Teal accent */
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

/* ============================================= */
/* Base Styles */
/* ============================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  padding-top: 72px; /* For fixed navbar */
  overflow-x: hidden;
}
/* 
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark);
}*/

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
}

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

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

img {
  max-width: 100%;
  
  vertical-align: middle;
}

ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

/* ============================================= */
/* Utility Classes */
/* ============================================= */

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }

.rounded { border-radius: 0.25rem !important; }
.rounded-pill { border-radius: 50rem !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }
.mb-5 { margin-bottom: var(--space-xl) !important; }

.p-3 { padding: var(--space-md) !important; }
.p-4 { padding: var(--space-lg) !important; }
.p-5 { padding: var(--space-xl) !important; }

/* ============================================= */
/* Components */
/* ============================================= */

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

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

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

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--white);
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

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

.card-body {
  flex: 1 1 auto;
  padding: var(--space-lg);
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  color: var(--dark) !important;
}

.nav-link.active {
  color: var(--primary) !important;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-section .carousel {
  width: 100%;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-slide{
  min-height: 500px;
}

.hero-slide  .container{
  vertical-align: middle;
  padding: calc(var(--bs-gutter-x) * .5);
}

 
@media(min-width:701px){

  img.hero-slide {
    width: 100% !important;
    height: 500px !important;
  }
}

@media(max-width:700px){

  img.hero-slide {
    height: 500px !important;
  }
}

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

.hero-content h1 {
  font-size: 3.5rem;
  text-shadow: 1px 1px 3px rgb(252, 152, 29);
  color: bisque;
}

/* About Section */
.about-image-container {
  position: relative;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* Icon Box */
.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
}

/* Projects */
.project-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 102, 204, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-overlay i {
  color: var(--white);
  font-size: 2rem;
}

.project-image:hover .project-overlay {
  opacity: 1;
}

.project-filter {
  margin-bottom: var(--space-xl);
}

.project-filter button {
  margin: 0 var(--space-sm);
}

/* Testimonials */
.testimonial-card {
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.testimonial-author img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* Contact Form */
.contact-form .form-control {
  height: calc(2.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.contact-form textarea.form-control {
  height: auto;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: var(--space-xxl);
}

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

.footer a:hover {
  color: var(--white);
  text-decoration: none;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: var(--space-sm);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================= */
/* Responsive Adjustments */
/* ============================================= */

@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .experience-badge {
    width: 80px;
    height: 80px;
    right: 0;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 62px;
  }
  
  .hero-section {
    height: auto;
    min-height: auto;
    
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .navbar-nav {
    padding-top: var(--space-md);
  }
}

@media (max-width: 575.98px) {
  .hero-content .btn {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
  
  .project-filter button {
    margin-bottom: var(--space-sm);
    width: 100%;
  }
}

/* ============================================= */
/* Animations */
/* ============================================= */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ============================================= */
/* Custom Components */
/* ============================================= */

/* Process Steps */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: var(--space-xxl) 0;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-light);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: bold;
}

.step-content {
  padding: 0 var(--space-sm);
}

/* Accordion */
.accordion-button:not(.collapsed) {
  color: var(--white);
  background-color: var(--primary);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

/* Tabs */
.nav-pills .nav-link.active {
  background-color: #b5b3f0;
}

/* Lightbox Overrides */
.lb-data .lb-close {
  background: url('../img/close.png') no-repeat;
}

/* ============================================= */
/* Helper Classes */
/* ============================================= */

.hover-effect {
  transition: all 0.3s ease;
}

.hover-effect:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.z-index-1 {
  position: relative;
  z-index: 1;
}

.overflow-hidden {
  overflow: hidden;
}