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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #eaeaea;
}

/* ===== SHARED HEADER STYLES ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 8%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.navbar a {
  display: inline-block;
  font-size: 18px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  margin: 0 20px;
  transition: .3s;
  opacity: 0;
  animation: slideTop .5s ease forwards;
  animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
  color: #2ea38a;
}

.social-media {
  display: flex;
  justify-content: space-between;
  width: 150px;
  height: 40px;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid transparent;
  text-decoration: none;
  transform: rotate(45deg);
  transition: .5s;
  opacity: 0;
  animation: slideSci .5s ease forwards;
  animation-delay: calc(.2s * var(--i));
}

.social-media a:hover {
  border-color: #eaeaea;
}

.social-media a i {
  font-size: 24px;
  color: #eaeaea;
  transform: rotate(-45deg);
}

/* ===== HOME PAGE STYLES ===== */
.home {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 50px 8% 0;
}

.home-content {
  max-width: 630px;
}

.home-content h1 {
  font-size: 50px;
  line-height: 1.2;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 1s;
}

.home-content h3 {
  font-size: 40px;
  color: #2ea38a;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 1.3s;
}

.home-content p {
  font-size: 16px;
  margin: 15px 0 30px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.6s;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  background: #2ea38a;
  border: 2px solid #2ea38a;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  font-size: 16px;
  color: #eaeaea;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
}

.btn:hover {
  background: transparent;
  color: #2ea38a;
}

.home-img {
  position: relative;
  top: 10px;
  right: -16%;
  width: 450px;
  height: 450px;
  transform: rotate(45deg);
}

.home-img .rhombus {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 21px solid #2ea38a;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: visible;
  opacity: 0;
  animation: zoomOut 1s ease forwards;
  animation-delay: 1.6s;
}

.home-img .rhombus::after {
  content: "";
  position: absolute;
  inset: -22px;
  opacity: .65;
  z-index: -1;
}

.home-img .rhombus img {
  position: absolute;
  top: 80px;
  left: -300px;
  transform: rotate(-45deg);
  filter: drop-shadow(0 25px 35px rgba(0,0,0,.35));
  z-index: 3;
  opacity: 0;
  animation: car 1s ease forwards;
  animation-delay: 2s;
}

.home .rhombus2 {
  position: absolute;
  top: -18%;
  right: -22%;
  width: 820px;
  height: 820px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
}

/* ===== FEATURED PAGE STYLES ===== */
.featured-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8% 50px;
  overflow: hidden;
}

.featured-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  width: 100%;
  height: 65vh;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Car Container - UPDATED SCALE TO 1.7 */
.featured-car {
  width: 100%;
  height: 100%;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.5s;
  margin-left: 120px;
  margin-top: -80px;
}

#carModel {
  width: 100%;
  height: 100%;
  background: transparent !important;
  min-height: 600px;
  transform: scale(1.7); /* CHANGED FROM 1.5 TO 1.7 */
  transform-origin: center;
}

/* Key Container - UNCHANGED */
.featured-key {
  width: 100%;
  height: 100%;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
  margin-left: 40px;
  margin-top: -50px;
}

#keyModel {
  width: 100%;
  height: 60%;
  background: transparent !important;
  max-height: 250px;
  transform: scale(1.2);
  transform-origin: center;
}

/* Specifications Table */
.specs-container {
  width: 100%;
  padding: 0 8%;
  margin-top: 30px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.specs-table {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.9s;
}

.spec {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 25px 20px;
  line-height: 1.3;
  transition: all 0.3s ease;
  border-top: 4px solid #2ea38a;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.spec strong {
  display: block;
  font-size: 22px;
  color: #222;
  font-weight: 700;
  margin-bottom: 8px;
}

.spec span {
  display: block;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.spec:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Featured Page Rhombus Elements */
.rhombus-left-1 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 0.8;
}

.rhombus-left-2 {
  position: absolute;
  top: 20%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 0.6;
}

.featured-page .rhombus2 {
  position: absolute;
  top: -30%;
  right: -7%;
  width: 450px;
  height: 550px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 1;
}

/* ===== MODEL VIEWER STYLES ===== */
model-viewer {
  background: transparent !important;
}

model-viewer::part(default-progress-bar) {
  display: none;
}

model-viewer::part(poster) {
  background: transparent;
}

/* ===== SITE ANIMATIONS (KEEP THESE) ===== */
@keyframes slideRight {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideTop {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideBottom {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideSci {
  0% { transform: translateX(100px) rotate(45deg); opacity: 0; }
  100% { transform: translateY(0) rotate(45deg); opacity: 1; }
}

@keyframes zoomOut {
  0% { transform: scale(1.1); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes car {
  0% { transform: translate(300px, -300px) scale(0) rotate(-45deg); opacity: 0; }
  100% { transform: translate(0, 0) scale(1.08) rotate(-45deg); opacity: 1; }
}

/* ===== RESPONSIVE DESIGN - UPDATED CAR SCALE ===== */
@media (max-width: 1440px) {
  /* Large Desktop */
  #carModel {
    transform: scale(1.6); /* ADJUSTED FROM 1.4 TO 1.6 */
    min-height: 550px;
  }
  
  #keyModel {
    transform: scale(1.15);
  }
  
  .featured-car {
    margin-left: 50px;
    margin-top: -70px;
  }
  
  .featured-key {
    margin-left: 35px;
    margin-top: -45px;
  }
}

@media (max-width: 1200px) {
  /* Medium Desktop / Laptop */
  .featured-content {
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    height: 60vh;
  }
  
  .specs-table {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .home-img {
    right: -10%;
    width: 400px;
    height: 400px;
  }
  
  #carModel {
    min-height: 500px;
    transform: scale(1.5); /* ADJUSTED FROM 1.3 TO 1.5 */
  }
  
  #keyModel {
    transform: scale(1.1);
  }
  
  .featured-car {
    margin-left: 40px;
    margin-top: -60px;
  }
  
  .featured-key {
    margin-left: 30px;
    margin-top: -40px;
  }
}

@media (max-width: 992px) {
  /* Small Desktop / Large Tablet */
  #carModel {
    min-height: 450px;
    transform: scale(1.4); /* ADJUSTED FROM 1.2 TO 1.4 */
  }
  
  #keyModel {
    transform: scale(1.05);
  }
  
  .featured-car {
    margin-left: 30px;
    margin-top: -50px;
  }
  
  .featured-key {
    margin-left: 25px;
    margin-top: -35px;
  }
}

@media (max-width: 768px) {
  /* Tablet / Mobile Landscape */
  .header {
    padding: 20px 5%;
  }
  
  .navbar a {
    margin: 0 10px;
    font-size: 16px;
  }
  
  .featured-page {
    padding: 80px 5% 30px;
  }
  
  .featured-content {
    grid-template-columns: 1fr;
    height: 50vh;
    gap: 20px;
  }
  
  .featured-car {
    height: 70%;
    margin-left: 20px;
    margin-top: -30px;
  }
  
  .featured-key {
    height: 30%;
    margin-left: 15px;
    margin-top: -20px;
  }
  
  #carModel {
    min-height: 350px;
    transform: scale(1.3); /* ADJUSTED FROM 1.1 TO 1.3 */
  }
  
  #keyModel {
    height: 80%;
    max-height: 200px;
    transform: scale(1.0);
  }
  
  .specs-table {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-content h1 {
    font-size: 36px;
  }
  
  .home-content h3 {
    font-size: 28px;
  }
  
  .home-img {
    display: none;
  }
  
  /* Updated responsive for rhombus design */
  .rhombus-left-1 {
    width: 300px;
    height: 300px;
    bottom: -8%;
    left: -8%;
  }
  
  .rhombus-left-2 {
    width: 150px;
    height: 150px;
    top: 25%;
    left: 3%;
  }
  
  .featured-page .rhombus2 {
    width: 500px;
    height: 500px;
    top: -15%;
    right: -15%;
  }
  
  .home .rhombus2 {
    width: 500px;
    height: 500px;
  }
}

@media (max-width: 480px) {
  /* Mobile Portrait */
  #carModel {
    min-height: 300px;
    transform: scale(1.2); /* ADJUSTED FROM 1.0 TO 1.2 */
  }
  
  #keyModel {
    transform: scale(0.9);
  }
  
  .featured-car {
    margin-left: 15px;
    margin-top: -20px;
  }
  
  .featured-key {
    margin-left: 10px;
    margin-top: -15px;
  }
  
  .specs-table {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .spec {
    padding: 20px 15px;
    min-height: 80px;
  }
  
  .spec strong {
    font-size: 18px;
  }
  
  .spec span {
    font-size: 12px;
  }
}

/* ===== HEART PAGE STYLES ===== */
.heart-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8% 50px;
  overflow: hidden;
}

.heart-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  width: 100%;
  height: 65vh;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left: Engine Specs Card */
.engine-specs-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  padding: 40px 30px;
  border-top: 6px solid #2ea38a;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.5s;
  margin-left: 80px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.engine-title {
  font-size: 28px;
  color: #222;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.spec-box {
  background: rgba(46, 163, 138, 0.1);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.spec-box:hover {
  transform: translateY(-8px);
  border-color: #2ea38a;
  box-shadow: 0 10px 25px rgba(46, 163, 138, 0.2);
  background: #fff;
}

.spec-box strong {
  display: block;
  font-size: 20px;
  color: #2ea38a;
  font-weight: 700;
  margin-bottom: 8px;
}

.spec-box span {
  display: block;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right: Engine Model */
.heart-engine {
  width: 100%;
  height: 100%;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
  margin-right: 100px;
  margin-top: -40px;
}

#engineModel {
  width: 100%;
  height: 100%;
  background: transparent !important;
  min-height: 500px;
  transform: scale(1.2);
  transform-origin: center;
}

/* Background Elements */
.heart-rhombus-1 {
  position: absolute;
  top: -7%;
  right: 6.21%;
  width: 200px;
  height: 200px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 1;
}

.heart-rhombus-2 {
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 350px;
  height: 350px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 0.8;
}

.heart-circle-1 {
  position: absolute;
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  background: #2ea38a;
  border-radius: 50%;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 0.6;
}

.heart-circle-2 {
  position: absolute;
  bottom: -4%;
  right: -4%;
  width: 280px;
  height: 280px;
  background: #2ea38a;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  z-index: -2;
  opacity: 0.6;
}

/* Animations */
@keyframes slideLeft {
  0% { transform: translateX(-50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
  0% { transform: translateX(50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 1200px) {
  .heart-content {
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
  }
  
  #engineModel {
    transform: scale(1);
  }
  
  .engine-specs-card {
    margin-left: 50px;
    padding: 30px 25px;
  }
  
  .heart-engine {
    margin-right: 70px;
  }
}

@media (max-width: 768px) {
  .heart-content {
    grid-template-columns: 1fr;
    gap: 40px;
    height: auto;
  }
  
  .engine-specs-card {
    margin-left: 0;
    order: 1;
    min-height: 300px;
  }
  
  .heart-engine {
    margin-right: 0;
    margin-top: 0;
    height: 400px;
    order: 2;
  }
  
  #engineModel {
    transform: scale(0.8);
    min-height: 350px;
  }
  
  .specs-grid {
    gap: 15px;
  }
  
  .spec-box {
    padding: 20px 15px;
    min-height: 80px;
  }
  
  .spec-box strong {
    font-size: 18px;
  }
  
  .spec-box span {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  #engineModel {
    transform: scale(0.6);
  }
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .logo-img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 60px;
    height: 60px;
  }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8% 50px;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  width: 100%;
  height: 70vh;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left: Text Content */
.about-text {
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.5s;
}

.about-text h1 {
  font-size: 48px;
  line-height: 1.2;
  color: #222;
  margin-bottom: 15px;
}

.about-text h3 {
  font-size: 32px;
  color: #2ea38a;
  margin-bottom: 25px;
  font-weight: 600;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* Stats Section */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #2ea38a;
}

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

.stat strong {
  display: block;
  font-size: 28px;
  color: #222;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat span {
  display: block;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Right: Large 3D Logos Stack */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
  height: 100%;
}

.large-logos-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.logo-3d-bmw model-viewer {
  width: 220px !important;
  height: 220px !important;
  background: transparent !important;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: grab;
}

.logo-3d-m4 model-viewer {
  width: 380px !important;
  height: 380px !important;
  background: transparent !important;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: grab;
}


/* Background Elements */
.about-rhombus-1 {
  position: absolute;
  top: -15%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 1;
}

.about-rhombus-2 {
  position: absolute;
  bottom: -12%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 0.8;
}

.about-circle {
  position: absolute;
  top: 20%;
  left: 45%;
  width: 150px;
  height: 150px;
  background: #2ea38a;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  z-index: -2;
  opacity: 0.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .about-content {
    gap: 60px;
  }
  
  .logo-3d-item model-viewer {
    width: 240px !important;
    height: 240px !important;
  }
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    height: auto;
  }
  
  .about-text {
    order: 2;
    text-align: center;
  }
  
  .about-visual {
    order: 1;
  }
  
  .large-logos-stack {
    flex-direction: row;
    gap: 50px;
  }
  
  .logo-3d-item model-viewer {
    width: 200px !important;
    height: 200px !important;
  }
}

@media (max-width: 768px) {
  .about-text h1 {
    font-size: 36px;
  }
  
  .about-text h3 {
    font-size: 24px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .large-logos-stack {
    flex-direction: column;
    gap: 40px;
  }
  
  .logo-3d-item model-viewer {
    width: 180px !important;
    height: 180px !important;
  }
}

@media (max-width: 480px) {
  .logo-3d-item model-viewer {
    width: 160px !important;
    height: 160px !important;
  }
}

/* ===== 3D HEADER LOGO STYLES ===== */
.header .logo {
  display: flex;
  align-items: center;
  width: 90px;
  height: 90px;
  perspective: 500px; /* Adds 3D perspective container */
}

.header .logo model-viewer {
  width: 120px !important;
  height: 120px !important;
  background: transparent !important;
  transition: all 0.3s ease;
  border-radius: 50%;
  transform-style: preserve-3d; /* Ensures 3D transformations */
}

.header .logo:hover model-viewer {
  transform: scale(1.15);
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
}
/* Heritage Timeline */
.heritage-timeline {
  margin: 30px 0;
}

.heritage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  opacity: 0;
  animation: slideRight 0.6s ease forwards;
}

.heritage-item:nth-child(1) { animation-delay: 0.3s; }
.heritage-item:nth-child(2) { animation-delay: 0.5s; }
.heritage-item:nth-child(3) { animation-delay: 0.7s; }

.year-badge {
  background: #2ea38a;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  margin-right: 15px;
  min-width: 60px;
  text-align: center;
}

.heritage-content h4 {
  color: #222;
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 600;
}

.heritage-content p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Technology Features */
.tech-features {
  margin: 35px 0;
}

.tech-features h4 {
  color: #222;
  margin-bottom: 20px;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature {
  background: #fff;
  padding: 20px 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border-top: 3px solid #2ea38a;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

.feature strong {
  display: block;
  color: #222;
  font-size: 14px;
  margin-bottom: 5px;
}

.feature p {
  color: #666;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

/* Emblems Showcase */
.emblems-showcase {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

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

.emblem-item model-viewer {
  border-radius: 15px;
  margin-bottom: 15px;
}

.emblem-info h4 {
  color: #222;
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
}

.emblem-info p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .emblems-showcase {
    gap: 30px;
  }
  
  .emblem-item model-viewer {
    width: 150px !important;
    height: 150px !important;
  }
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-page {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8% 50px;
  overflow: hidden;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 100%;
  height: 65vh;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* Left: Contact Form Section */
.contact-form-section {
  background: #fff;
  padding: 30px; /* Reduced padding to make form smaller */
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-top: 6px solid #2ea38a;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.5s;
  margin-left: 60px;
  height: fit-content;
  max-width: 500px; /* Limit maximum width */
}

.contact-form-section h1 {
  font-size: 36px; /* Slightly smaller heading */
  line-height: 1.2;
  color: #222;
  margin-bottom: 15px;
}

.contact-form-section h3 {
  font-size: 20px; /* Slightly smaller subheading */
  color: #2ea38a;
  margin-bottom: 15px; /* Reduced margin */
  font-weight: 600;
}

.contact-form-section p {
  font-size: 14px; /* Smaller text */
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px; /* Reduced margin */
}

/* Required field labels */
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.required::after {
  content: " *";
  color: #e74c3c;
}

/* Simple Contact Form */
.simple-contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Reduced gap between form elements */
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; /* Reduced gap */
}

.simple-contact-form input,
.simple-contact-form select,
.simple-contact-form textarea {
  padding: 12px 15px; /* Reduced padding */
  border: 2px solid #e0e0e0;
  border-radius: 8px; /* Slightly smaller radius */
  font-size: 14px; /* Smaller font */
  transition: all 0.3s ease;
  background: #fff;
  font-family: "Poppins", sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.simple-contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}

.simple-contact-form input:focus,
.simple-contact-form select:focus,
.simple-contact-form textarea:focus {
  outline: none;
  border-color: #2ea38a;
  box-shadow: 0 0 0 3px rgba(46, 163, 138, 0.1);
}

.simple-contact-form textarea {
  resize: none;
  min-height: 80px; /* Smaller textarea */
}

.contact-btn {
  background: #2ea38a;
  color: white;
  border: none;
  padding: 14px 28px; /* Slightly smaller button */
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 5px; /* Reduced margin */
  width: 100%;
}

.contact-btn:hover {
  background: #248f78;
  transform: translateY(-2px); /* Smaller lift effect */
  box-shadow: 0 6px 15px rgba(46, 163, 138, 0.3); /* Smaller shadow */
}

/* Right: 3D Business Card Only */
.business-card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
  height: 100%;
  margin-right: 60px;
}

.business-card-container model-viewer {
  width: 500px !important; /* Slightly smaller 3D model */
  height: 500px !important;
  background: transparent !important;
  border-radius: 15px;
  cursor: grab;
}

/* Background Elements */
.contact-rhombus-1 {
  position: absolute;
  top: -12%;
  right: -6%;
  width: 450px;
  height: 450px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 1;
}

.contact-rhombus-2 {
  position: absolute;
  bottom: -10%;
  left: -4%;
  width: 320px;
  height: 320px;
  background: #2ea38a;
  transform: rotate(45deg);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  z-index: -2;
  opacity: 0.8;
}

.contact-circle-1 {
  position: absolute;
  top: 25%;
  left: 48%;
  width: 130px;
  height: 130px;
  background: #2ea38a;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  z-index: -2;
  opacity: 0.6;
}

.contact-circle-2 {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 90px;
  height: 90px;
  background: #2ea38a;
  border-radius: 50%;
  box-shadow: 0 15px 30px rgba(0,0,0,.2);
  z-index: -2;
  opacity: 0.3;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .contact-content {
    gap: 50px;
  }
  
  .contact-form-section {
    margin-left: 30px;
    padding: 25px 25px; /* Further reduced padding for tablets */
    max-width: 450px;
  }
  
  .business-card-container {
    margin-right: 30px;
  }
  
  .business-card-container model-viewer {
    width: 350px !important;
    height: 350px !important;
  }
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
    height: auto;
  }
  
  .contact-form-section {
    order: 1;
    margin-left: 0;
    max-width: 100%;
    padding: 30px 25px;
  }
  
  .business-card-container {
    order: 2;
    margin-right: 0;
  }
  
  .business-card-container model-viewer {
    width: 320px !important;
    height: 320px !important;
  }
}

@media (max-width: 768px) {
  .contact-form-section {
    padding: 25px 20px; /* Even smaller padding for mobile */
  }
  
  .contact-form-section h1 {
    font-size: 28px; /* Smaller heading for mobile */
  }
  
  .contact-form-section h3 {
    font-size: 18px; /* Smaller subheading for mobile */
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .business-card-container model-viewer {
    width: 280px !important;
    height: 280px !important;
  }
}

@media (max-width: 480px) {
  .contact-form-section {
    padding: 20px 15px; /* Minimal padding for very small screens */
  }
  
  .contact-form-section h1 {
    font-size: 24px;
  }
  
  .simple-contact-form input,
  .simple-contact-form select,
  .simple-contact-form textarea {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .business-card-container model-viewer {
    width: 250px !important;
    height: 250px !important;
  }
}

