/* 
   SPICA DESIGN SYSTEM - MODERN REWORK
   Premium, Responsive, and Interactive Styling Tokens
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Teko:wght@400;500;600;700&display=swap');

:root {
  --primary: #f24a00;
  --primary-hover: #d13f00;
  --primary-rgb: 242, 74, 0;
  --dark: #0f1013;
  --dark-accent: #191b22;
  --light: #ffffff;
  --light-gray: #f8f9fb;
  --gray-text: #606470;
  --border-color: #e5e8ec;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --box-shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.08);
  --box-shadow-premium: 0 30px 60px rgba(242, 74, 0, 0.08);
}

/* Global Reset & Typography */
body {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-top: 0;
}

.font-teko {
  font-family: 'Teko', sans-serif;
}

/* Glassmorphism Header Customizations */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition-smooth);
}

.navbar-custom.scrolled {
  background: rgba(15, 16, 19, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-custom.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-custom.scrolled .nav-link:hover,
.navbar-custom.scrolled .nav-link.active {
  color: var(--primary) !important;
}

/* Hero Section & Slider */
.hero-wrapper {
  position: relative;
  height: 90vh;
  min-height: 600px;
  background-color: var(--dark);
  color: var(--light);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 16, 19, 0.9) 30%, rgba(15, 16, 19, 0.3) 100%);
  z-index: 2;
}

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

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

.hero-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

/* Buttons */
.btn-premium {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  background: var(--primary);
  color: var(--light) !important;
  border: 2px solid var(--primary);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(242, 74, 0, 0.2);
}

.btn-premium:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(242, 74, 0, 0.35);
}

.btn-outline-premium {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: var(--border-radius-sm);
  background: transparent;
  color: var(--light) !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-premium:hover {
  background: var(--light);
  color: var(--dark) !important;
  border-color: var(--light);
  transform: translateY(-3px);
}

/* Custom Cards */
.spica-card {
  background: var(--light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
}

.spica-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
  border-color: rgba(242, 74, 0, 0.15);
}

/* Category Grid Images & Overlay */
.category-card {
  position: relative;
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
}

.category-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
}

.category-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 16, 19, 0.9) 10%, rgba(15, 16, 19, 0) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--light);
  z-index: 2;
  transition: var(--transition-smooth);
}

.category-card:hover .category-card__img {
  transform: scale(1.1);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(242, 74, 0, 0.9) 10%, rgba(15, 16, 19, 0.1) 80%);
}

.category-card__title {
  font-family: 'Teko', sans-serif;
  font-size: 2.25rem;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.category-card__arrow {
  font-size: 1.25rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-smooth);
  display: inline-block;
  margin-left: 5px;
}

.category-card:hover .category-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Showrooms Page Grid Styles */
.showroom-card {
  background: var(--light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
  overflow: hidden;
  margin-bottom: 30px;
}

.showroom-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
  border-color: rgba(242, 74, 0, 0.15);
}

.showroom-card__img-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.showroom-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.showroom-card:hover .showroom-card__img {
  transform: scale(1.05);
}

.showroom-card__body {
  padding: 30px;
}

.showroom-card__city {
  font-size: 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.showroom-card__city::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.showroom-card__address {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin-bottom: 25px;
  min-height: 72px;
}

.showroom-card__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Blog layouts */
.blog-card {
  background: var(--light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
  border-color: rgba(242, 74, 0, 0.15);
}

.blog-card__img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__date {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.blog-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

.blog-card__title a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.blog-card__title a:hover {
  color: var(--primary);
}

.blog-card__link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-card__link:hover {
  color: var(--primary-hover);
}

/* Premium Form Styles */
.spica-form-group {
  margin-bottom: 25px;
  position: relative;
}

.spica-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--light-gray);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  transition: var(--transition-smooth);
}

.spica-input:focus {
  border-color: var(--primary);
  background-color: var(--light);
  box-shadow: 0 0 0 4px rgba(242, 74, 0, 0.1);
  outline: none;
}

.spica-textarea {
  min-height: 150px;
  resize: vertical;
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Responsive Styles */
@media (max-width: 991.98px) {
  .hero-wrapper {
    height: auto;
    min-height: auto;
    padding: 80px 0;
  }
  .navbar-custom {
    background: var(--light) !important;
  }
}

/* Infinite Scrolling Logo Marquee */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pulsing 3D Tour Icon Glow */
@keyframes pulse-glow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(242, 74, 0, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(242, 74, 0, 0.6));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(242, 74, 0, 0));
  }
}

/* Logo Hover Effect */
.logo img {
  transition: var(--transition-smooth);
}
.logo:hover img {
  transform: scale(1.05);
}

/* Projects card animations */
.simple-slider {
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  background-color: var(--light);
}

.simple-slider:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
  border-color: rgba(242, 74, 0, 0.15);
}

.simple-slider img {
  width: 100%;
  height: auto;
  transition: var(--transition-smooth);
}

.simple-slider:hover img {
  transform: scale(1.03);
}

.simple-slider .title {
  padding: 15px;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-align: left !important;
}

