/* ==========================================================================
   Jampani Projects - Design System & Custom Styles
   ========================================================================== */

/* --- 1. Variables & Design System --- */
:root {
  /* Brand Colors */
  --primary: #a94545;       /* Deep Architectural Red */
  --primary-dark: #8b3838;
  --secondary: #f1bc3a;     /* Engineering Gold */
  --accent: #e8ac18;

  /* Neutrals */
  --dark: #1D1729;          /* Headings & dark sections */
  --darker: #110e1a;        /* Deep background */
  --light: #F9F9FA;         /* Light sections */
  --white: #FFFFFF;
  
  /* Text */
  --text-main: #6C6A72;
  --text-muted: #8A8A93;
  --border-color: #E5E5E9;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Structural */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* --- 2. Global Resets & Base Styles --- */
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary);
}

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

section {
  padding: 100px 0;
}

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

/* --- 3. Buttons --- */
.btn-premium {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 35px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-fast);
}

.btn-premium::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 0; height: 100%;
  background-color: var(--dark);
  z-index: -1;
  transition: var(--transition-fast);
}

.btn-premium:hover {
  color: var(--white);
}

.btn-premium:hover::before {
  width: 100%;
}

.btn-outline-premium {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 33px;
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 0;
  transition: var(--transition-fast);
}

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

/* --- 4. Header & Navigation --- */
.site-header {
  position: absolute;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: var(--transition-fast);
}

.site-header.sticky {
  position: fixed;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 10px 0;
}

.site-header.sticky .navbar-nav .nav-link {
  color: var(--dark);
}
.site-header.sticky .navbar-nav .nav-link:hover {
  color: var(--primary);
}
.site-header.sticky .logo-img {
  content: url('http://www.jampaniprojects.com/wp-content/uploads/2024/06/logo_caption.png');
}

.navbar-nav .nav-link {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 10px 20px;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--secondary);
}

.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 15px;
}

.dropdown-item {
  font-family: var(--font-body);
  font-weight: 500;
  padding: 10px 20px;
  transition: var(--transition-fast);
}
.dropdown-item:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* --- 5. Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--dark);
}

.swiper-slide .hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 10s ease;
  z-index: 0;
}

.swiper-slide-active .hero-bg {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(29, 23, 41, 0.9) 0%, rgba(29, 23, 41, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.hero-title {
  color: var(--white);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.hero-subtitle {
  color: #e0e0e0;
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 40px;
}

.slider-controls {
  position: absolute;
  bottom: 50px;
  right: 50px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
}

.slider-pagination {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

.slider-nav-btn {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-nav-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* --- 6. About Section --- */
.section-label {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 30px;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.experience-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background-color: var(--secondary);
  padding: 40px;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 15px 30px rgba(241, 188, 58, 0.3);
}

.experience-card .number {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1;
}

.experience-card .text {
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  margin-top: 5px;
}

/* --- 7. Statistics Section --- */
.stats-section {
  background-image: linear-gradient(rgba(29, 23, 41, 0.9), rgba(29, 23, 41, 0.9)), url('http://www.jampaniprojects.com/wp-content/uploads/2024/10/7.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

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

.stat-number {
  font-size: 4.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
  display: block;
}

.stat-title {
  color: var(--white);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- 8. Services Section --- */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-item {
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  transition: var(--transition-fast);
  cursor: pointer;
}

.service-item:first-child { border-top: 1px solid var(--border-color); }

.service-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-title {
  font-size: 1.5rem;
  margin: 0;
  transition: var(--transition-fast);
}

.service-icon {
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-20px);
  transition: var(--transition-fast);
}

.service-item:hover .service-title {
  color: var(--primary);
  transform: translateX(10px);
}

.service-item:hover .service-icon {
  opacity: 1;
  transform: translateX(0);
}

.service-featured-image {
  border-radius: var(--border-radius-md);
  height: 100%;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* --- 9. Projects Sections --- */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
  group: hover;
}

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

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 40px 30px 30px;
  color: var(--white);
  transition: all 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-category {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.project-title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.project-item-large { grid-column: span 8; }
.project-item-small { grid-column: span 4; }

@media (max-width: 991px) {
  .project-item-large, .project-item-small { grid-column: span 12; }
}

/* --- 10. Clients & Logos --- */
.client-logo {
  max-height: 80px;
  transition: var(--transition-base);
}

.client-logo:hover {
  transform: scale(1.05);
}

/* --- 11. Footer --- */
.site-footer {
  background-color: var(--light);
  color: var(--text-main);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-title {
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--text-main);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  margin-bottom: 15px;
  gap: 15px;
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 60px;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- 12. Responsive Adjustments --- */
@media (max-width: 991px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2.25rem; }
  
  .experience-card {
    position: relative;
    bottom: 0; left: 0;
    margin-top: -30px;
    margin-left: 20px;
    margin-right: 20px;
    z-index: 2;
  }
  
  .site-header { background: var(--dark); }
  .navbar-nav .nav-link { color: var(--white) !important; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .logo-img { content: url('http://www.jampaniprojects.com/wp-content/uploads/2024/06/logo_caption.png') !important; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 2.5rem; }
  .slider-controls { right: 20px; bottom: 20px; }
  .stat-item { margin-bottom: 40px; }
}

/* --- 13. Utilities --- */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.inner-hero .hero-bg {
  transform: scale(1.1);
  animation: subtleZoom 20s infinite alternate;
}
@keyframes subtleZoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.15); }
}

/* Breadcrumb Divider Visibility */
.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5) !important;
}


/* Enable dropdown on hover for desktop */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Premium Service Cards (Added for Services Page) */
.service-card-premium {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    height: 350px;
    cursor: pointer;
}

.service-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29, 23, 41, 0.95) 0%, rgba(29, 23, 41, 0.3) 50%, transparent 100%);
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

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

.service-card-premium:hover::after {
    opacity: 1;
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card-premium:hover .service-card-content {
    transform: translateY(0);
}

.service-card-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
}

.service-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.4s ease 0.1s;
}

.service-card-premium:hover .service-card-title::after {
    width: 40px;
}


/* Portfolio Image Styles */
.image-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.portfolio-content-block {
    position: relative;
    padding: 3rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.w-80 {
    width: 80% !important;
}

.w-60 {
    width: 60% !important;
}

.mb-6 {
    margin-bottom: 6rem !important;
}

.mt-6 {
    margin-top: 6rem !important;
}


/* --- 10. Search Popup --- */
.search-popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 14, 26, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-popup-content {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-popup-overlay.active .search-popup-content {
    transform: translateY(0);
}

.search-popup-close {
    position: absolute;
    top: -60px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-popup-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.search-form {
    display: flex;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
}

.search-form .search-field {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    outline: none;
    width: 100%;
}

.search-form .search-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-form .search-submit {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.search-form .search-submit:hover {
    color: var(--primary);
}

@media (max-width: 767px) {
    .search-form .search-field {
        font-size: 1.5rem;
    }
    .search-popup-close {
        top: -40px;
        right: 10px;
        font-size: 1.5rem;
    }
}
