@import url("../styles/components/base.css");

:root {
  --header-height: 80px;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 28px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  box-shadow: 0 15px 35px rgba(108, 50, 172, 0.4);
}


/* Hero Section with Canvas Animation */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-title .word {
  display: inline-block;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light), #9d50bb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wordReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.hero-title .word:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title .word:nth-child(2) {
  animation-delay: 0.3s;
}

.hero-title .word:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease 0.7s backwards;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Floating Metric Cards */
.floating-metrics {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.9s backwards;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  min-width: 140px;
  text-align: center;
  animation: float 3s ease-in-out infinite;
  animation-delay: var(--delay);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(108, 50, 172, 0.3);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 1.1s backwards;
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-full {
  width: 100%;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.8rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--primary-light), transparent);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(108, 50, 172, 0.4);
}

/* Brush stroke effect variation */
.section-title::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(1.1);
  width: 130px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(157, 80, 187, 0.3), rgba(108, 50, 172, 0.3), transparent);
  border-radius: 10px;
  filter: blur(3px);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mission Section - Bento Box Layout */
.mission-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 26, 26, 0.5) 100%);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 50, 172, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 25px 50px rgba(108, 50, 172, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.bento-content {
  position: relative;
  z-index: 2;
}

.bento-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  display: inline-block;
}

.bento-item:hover .bento-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-light);
}

.bento-item h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.bento-item p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.bento-decoration {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.bento-item:hover .bento-decoration {
  opacity: 0.1;
  transform: scale(1.2);
}

/* Vertical Timeline Section */
.timeline-section {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.timeline-vertical {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    transparent 0%,
    var(--primary-color) 10%,
    var(--primary-light) 50%,
    var(--primary-color) 90%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item-wrapper {
  position: relative;
  margin: 4rem 0;
  z-index: 2;
}

.timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.timeline-item.left {
  justify-content: flex-end;
}

.timeline-item.right {
  justify-content: flex-start;
}

.timeline-card-vertical {
  width: 45%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.timeline-card-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(108, 50, 172, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.timeline-card-vertical:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 25px 50px rgba(108, 50, 172, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-card-vertical:hover::before {
  opacity: 1;
}

.timeline-item.left .timeline-card-vertical {
  margin-right: calc(55% + 2rem);
  text-align: right;
}

.timeline-item.right .timeline-card-vertical {
  margin-left: calc(55% + 2rem);
  text-align: left;
}

.timeline-date-vertical {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(108, 50, 172, 0.3);
}

.timeline-content-vertical h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-content-vertical p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.timeline-dot-vertical {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid var(--bg-dark);
  border-radius: 50%;
  z-index: 3;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(108, 50, 172, 0.5);
}

.timeline-item-wrapper:hover .timeline-dot-vertical {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 30px rgba(108, 50, 172, 0.8);
  background: var(--primary-light);
}

/* Connector lines from dot to card */
.timeline-item::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    rgba(108, 50, 172, 0.3) 100%
  );
  transform: translateY(-50%);
  z-index: 2;
}

.timeline-item.left::after {
  right: 50%;
  margin-right: 10px;
}

.timeline-item.right::after {
  left: 50%;
  margin-left: 10px;
  background: linear-gradient(90deg, 
    rgba(108, 50, 172, 0.3) 0%,
    var(--primary-color) 100%
  );
}

/* 3D Subsidiaries Section */
.subsidiaries-3d {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
  padding: 8rem 0;
}

.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  perspective: 1000px;
}

.subsidiary-card-3d {
  position: relative;
  height: 600px;
  cursor: pointer;
}

.card-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.subsidiary-card-3d:hover .card-3d-inner {
  transform: rotateY(180deg);
}

.card-3d-front,
.card-3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-3d-front {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
}

.card-3d-back {
  background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(108, 50, 172, 0.9) 100%);
  transform: rotateY(180deg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(108, 50, 172, 0.2), transparent 70%);
  pointer-events: none;
}

.card-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.subsidiary-card-3d:hover .card-spotlight {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-logo {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.card-content h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.feature-badge {
  padding: 0.5rem 1rem;
  background: rgba(108, 50, 172, 0.2);
  border: 1px solid rgba(108, 50, 172, 0.4);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
}

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-action {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  padding-top: 2rem;
}

/* Card Back Styles */
.card-content-back {
  color: white;
}

.card-content-back h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.founded-date {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.card-description {
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.services-compact {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.services-compact li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.services-compact li i {
  color: var(--primary-light);
  font-size: 0.9rem;
}

.services-compact li:last-child {
  border-bottom: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */

/* Large Desktop */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
    .card-stats {
    display: none;
  }
}

@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .subsidiaries-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .subsidiary-card-3d {
    height: 550px;
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    max-width: 500px;
  }
  
  .floating-metrics {
    gap: 1.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .section-title {
    font-size: 2.5rem;
    padding-bottom: 0.7rem;
  }
  
  .section-title::after {
    width: 110px;
  }
  
  .section-title::before {
    width: 120px;
  }
  
  .bento-item {
    padding: 2.5rem;
  }
  
  .bento-icon {
    font-size: 2.5rem;
  }
  
  .bento-item h3 {
    font-size: 1.6rem;
  }
  
  .timeline-carousel-wrapper {
    padding: 2rem 70px;
  }
  
  .timeline-card {
    width: 350px;
  }
    .card-stats {
    display: none;
  }
}

/* Tablet Portrait and Mobile Landscape */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: calc(var(--header-height) + 2rem) 1rem 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-title .word {
    display: inline;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .floating-metrics {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .metric-card {
    min-width: 110px;
    padding: 1.2rem 1.5rem;
  }
  
  .metric-value {
    font-size: 1.8rem;
  }
  
  .metric-label {
    font-size: 0.85rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2.2rem;
    padding-bottom: 0.6rem;
  }
  
  .section-title::after {
    width: 100px;
    height: 5px;
  }
  
  .section-title::before {
    width: 110px;
  }
  
  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    margin-bottom: 3rem;
  }
  
  .bento-grid {
    gap: 1.2rem;
    padding: 0 1rem;
  }
  
  .bento-item {
    padding: 2rem;
  }
  
  .bento-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }
  
  .bento-item h3 {
    font-size: 1.5rem;
  }
  
  .bento-item p {
    font-size: 1rem;
  }
  
  /* Vertical Timeline Mobile */
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item.left,
  .timeline-item.right {
    justify-content: flex-start;
  }
  
  .timeline-card-vertical {
    width: calc(100% - 80px);
    text-align: left !important;
  }
  
  .timeline-item.left .timeline-card-vertical,
  .timeline-item.right .timeline-card-vertical {
    margin-left: 80px;
    margin-right: 0;
  }
  
  .timeline-dot-vertical {
    left: 30px;
  }
  
  .timeline-item::after {
    display: none;
  }
  
  .timeline-item-wrapper {
    margin: 2.5rem 0;
  }
  
  .timeline-card-vertical {
    padding: 2rem;
  }
  
  .timeline-content-vertical h3 {
    font-size: 1.5rem;
  }
  
  .timeline-content-vertical p {
    font-size: 1rem;
  }
  
  .subsidiaries-grid {
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .subsidiary-card-3d {
    height: 550px;
  }
  
  .card-3d-front,
  .card-3d-back {
    padding: 2.5rem 2rem;
  }
  
  .card-content h3 {
    font-size: 2.2rem;
  }
  
  .card-logo {
    font-size: 3.5rem;
  }
  
  .card-tagline {
    font-size: 1rem;
  }
  
  .feature-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
  
  .card-stats {
    padding: 1.8rem;
    gap: 1.8rem;
  }
  
  .card-content-back h3 {
    font-size: 2.2rem;
  }
  
  .card-description {
    font-size: 0.95rem;
  }
  
  .services-compact li {
    font-size: 0.95rem;
  }

}

/* Mobile Portrait */
@media (max-width: 480px) {
  .hero {
    padding: calc(var(--header-height) + 1rem) 0.5rem 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
    padding: 0 1rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .floating-metrics {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .metric-card {
    min-width: auto;
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
    padding-bottom: 0.5rem;
  }
  
  .section-title::after {
    width: 80px;
    height: 4px;
  }
  
  .section-title::before {
    width: 90px;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .bento-grid {
    gap: 1rem;
  }
  
  .bento-item {
    padding: 1.5rem;
  }
  
  .bento-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .bento-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .bento-item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Vertical Timeline Mobile Small */
  .timeline-vertical {
    padding: 2rem 0;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-card-vertical {
    width: calc(100% - 60px);
    padding: 1.5rem;
  }
  
  .timeline-item.left .timeline-card-vertical,
  .timeline-item.right .timeline-card-vertical {
    margin-left: 60px;
  }
  
  .timeline-dot-vertical {
    left: 20px;
    width: 16px;
    height: 16px;
  }
  
  .timeline-item-wrapper {
    margin: 2rem 0;
  }
  
  .timeline-date-vertical {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.2rem;
  }
  
  .timeline-content-vertical h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .timeline-content-vertical p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .timeline-dots {
    gap: 0.6rem;
    margin-top: 2rem;
  }
  
  .subsidiaries-grid {
    gap: 2rem;
  }
  
  .subsidiary-card-3d {
    min-height: 500px;
  }
  
  .card-3d-front,
  .card-3d-back {
    padding: 2rem 1.5rem;
  }
  
  .card-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .card-tagline {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .card-features {
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  
  .feature-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Hide card-stats on mobile */
  
  .card-action {
    padding-top: 0;
    margin-top: auto;
    font-size: 0.9rem;
  }
  
  /* Card back adjustments */
  .card-content-back {
    display: flex;
    flex-direction: column;
  }
  .card-content-back h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .founded-date {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
  
  .card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  
  .services-compact {
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  .services-compact li {
    padding: 0.7rem 0;
    font-size: 0.9rem;
  }
  
  .services-compact li i {
    font-size: 0.85rem;
  }
  
  .btn-white {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
  }
  
  .card-content-back h3 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
  }
  
  .founded-date {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
  
  .card-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  
  .services-compact {
    margin-bottom: 1.5rem;
  }
  
  .services-compact li {
    padding: 0.7rem 0;
    font-size: 0.9rem;
  }
  
  .services-compact li i {
    font-size: 0.85rem;
  }
  
  .btn-white {
    padding: 12px 24px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .timeline-card-vertical {
    width: calc(100% - 50px);
  }
  
  .timeline-item.left .timeline-card-vertical,
  .timeline-item.right .timeline-card-vertical {
    margin-left: 50px;
  }
  
  .timeline-dot-vertical {
    width: 14px;
    height: 14px;
  }
  
  .subsidiary-card-3d {
    min-height: 420px;
  }
  
  .card-3d-front,
  .card-3d-back {
    padding: 1.5rem 1.25rem;
  }
  
  .card-content h3 {
    font-size: 1.8rem;
  }
  
  .card-logo {
    font-size: 2.5rem;
  }
  
  .card-tagline {
    font-size: 0.9rem;
  }
  
  .feature-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }
  
  .card-features {
    gap: 0.5rem;
  }
  
  .card-action {
    font-size: 0.85rem;
  }
  
  .card-content-back h3 {
    font-size: 1.8rem;
  }
  
  .card-description {
    font-size: 0.9rem;
  }
  
  .services-compact li {
    font-size: 0.85rem;
    padding: 0.6rem 0;
  }
  
  .btn-white {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .subsidiary-card-3d {
    min-height: 480px;
  }
  
  .card-content h3 {
    font-size: 1.8rem;
  }
  
  .card-logo {
    font-size: 2.5rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .bento-item:hover,
  .timeline-card-vertical:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  /* Ensure timeline dots are visible on touch devices */
  .timeline-dot-vertical {
    width: 18px;
    height: 18px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-canvas {
    image-rendering: -webkit-optimize-contrast;
  }
}