/* Global CSS (Bootstrap overrides + theme tokens) */

:root {
  --brand-bg-darker: #242b33;
  --brand-bg-dark: #2b343d;
  --brand-text: #eef1f4;
  --brand-text-muted: #aeb7c2;
  --brand-accent: #4aa3ff;
  --brand-primary: #0d6efd;
  --brand-card-bg: #ffffff;
  --brand-card-border: #e7ebf0;
}

html,
body {
  height: 100%;
}

.applyBtn {
  background: linear-gradient(90deg, #ff6b35, #ff8c66);
}

.hero img {
  width: 100%;
}

.navbar-brand img {
  width: 180px;
}

/* mobile */
@media (max-width: 768px) {
  .hero img {
    width: 100%;
    height: auto;
  }
  .navbar-brand img {
    width: 120px;
  }
}

/* desktop */

/* Footer theme matching the screenshot */
.site-footer {
  background: linear-gradient(
    180deg,
    var(--brand-bg-darker),
    var(--brand-bg-dark)
  );
  color: var(--brand-text);
}

.site-footer h2 {
  color: var(--brand-text);
}

.site-footer a.link-light {
  color: var(--brand-text);
}

.site-footer a.link-light:hover,
.site-footer a.link-light:focus {
  color: var(--brand-accent);
  text-decoration: underline;
}

.site-footer .social-list {
  flex-wrap: wrap;
}

.site-footer .icon {
  width: 1.25rem;
  display: inline-block;
}

/* Optional subtle top divider line spanning full width */
.site-footer .border-secondary-subtle {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
  clip: rect(0 0 0 0) !important;
  overflow: hidden !important;
}

/* Top bar */
.top-bar {
  background: black;
  color: #fff;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}
.top-bar-item a:hover {
  color: var(--brand-primary) !important;
}
.top-bar_left {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.top-bar_right-item i {
  margin-right: 8px;
}

/* Navbar styling */
.navbar {
  transition: all 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-accent)
  );
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo i {
  color: white !important;
}
.brand-name {
  font-size: 1.2rem;
  line-height: 1;
}
.brand-tagline {
  font-size: 0.75rem;
  line-height: 1;
  margin-top: 2px;
}

.feature-highlight {
  transition: transform 0.2s ease;
}
.feature-highlight:hover {
  transform: translateY(-2px);
}
.hero-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(13, 110, 253, 0.1);
}
.stat-item {
  transition: all 0.2s ease;
}
.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-image {
  height: 300px;
  overflow: hidden;
}

.gallery-image img {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured image should be taller */
.gallery-item.featured .gallery-image {
  height: 400px;
}

/* Side images should be shorter to fit two in the column */
.gallery-item:not(.featured) .gallery-image {
  height: 200px;
}

/* Bottom row images */
.col-lg-3 .gallery-image {
  height: 250px;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content h5,
.gallery-content h6 {
  margin-bottom: 0.5rem;
}

.gallery-cta {
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.gallery-cta:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
}

/* Gallery Modal */
#galleryModal .modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

#galleryModal .carousel-item img {
  height: 60vh;
  object-fit: cover;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

#galleryModal .carousel-control-prev {
  left: 20px;
}

#galleryModal .carousel-control-next {
  right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem !important;
  }
  .hero-actions {
    justify-content: center;
  }
  .top-bar .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  .gallery-cta .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }

  #galleryModal .carousel-item img {
    height: 40vh;
  }

  /* Mobile gallery adjustments */
  .gallery-image {
    height: 250px !important;
  }

  .gallery-item.featured .gallery-image {
    height: 300px !important;
  }

  .gallery-item:not(.featured) .gallery-image {
    height: 200px !important;
  }
}

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

/* Cards look & headings */
.project-overview .card,
.project-description .card {
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-card-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
}
.card-heading {
  background: #f1f5f9;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--brand-card-border);
}

/* Project detail items styling */
.project-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.project-detail-item:last-child {
  border-bottom: none;
}
.detail-label {
  font-weight: 600;
  color: #64748b;
  flex: 0 0 40%;
  font-size: 0.9rem;
}
.detail-value {
  color: #1e293b;
  font-weight: 500;
  text-align: right;
  flex: 1;
  font-size: 0.9rem;
}

/* Feature items styling */
.feature-item {
  padding: 0.5rem 0;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}
.feature-item:hover {
  background-color: #f8fafc;
}

/* Highlight stats */
.highlight-stat {
  padding: 1rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  transition: transform 0.2s ease;
}
.highlight-stat:hover {
  transform: translateY(-2px);
}
.project-overview__head h1,
.project-description__head h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 700;
}
.project-description__features ul {
  margin: 0;
  padding-left: 1.2rem;
}
.project-description__features li {
  margin-bottom: 0.4rem;
}

/* Important note section */
.important-note {
  margin: 2rem 0;
}
.important-note__inner {
  background: #fff7ed;
}
.important-note h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}
.important-note ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* Ready to own banner (CTA) */
.ready-to-own-banner {
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  color: white;
}
.ready-to-own-banner h2 {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 1.2vw, 2rem);
}
.ready-to-own-banner p {
  max-width: 60ch;
  text-align: center;
}
.ready-to-own-banner .btn {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Navbar polish */
.navbar.bg-body-tertiary {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.navbar .btn-primary {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.navbar .btn-primary:hover {
  filter: brightness(1.05);
}

/* Section spacing & typography */
section,
.project-overview,
.project-description,
.important-note {
  scroll-margin-top: 80px;
}
.container p {
  line-height: 1.65;
}
.container h1,
.container h2,
.container h3 {
  letter-spacing: 0.2px;
}
