/* Home Page - Fonts imported via head.html */

/* Hero Section - Integrated with Header */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px; /* Account for header height */
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Top gradient that blends with header */
  background: linear-gradient(
      180deg,
      rgba(15, 15, 35, 1) 0%,
      rgba(15, 15, 35, 0.8) 10%,
      transparent 20%
    ),
    /* Main aurora gradients */
      radial-gradient(
        circle at 20% 50%,
        rgba(0, 255, 255, 0.3) 0%,
        transparent 50%
      ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 0, 255, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 165, 0, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 60% 40%,
      rgba(138, 43, 226, 0.2) 0%,
      transparent 50%
    ),
    /* Base gradient */
      linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(
      2px 2px at 160px 30px,
      rgba(255, 255, 255, 0.2),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: twinkle 10s linear infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content {
  margin-bottom: 4rem;
}

.hero-title {
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Increase clickable area */
  padding: 2rem;
  border-radius: 50%;
  background: transparent;
}

.scroll-indicator:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Content Section */
.content-section {
  background: #0a0a0a;
  color: white;
  padding: 6rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-block {
  margin-bottom: 6rem;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-title {
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 3rem;
  color: white;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
}

.section-description {
  text-align: center;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Models Section Styles */

/* Main Title Styling */
.main-title {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 4rem;
  color: white;
  line-height: 1.1;
  text-align: center;
}

.main-title .highlight {
  color: #00d4ff;
  font-weight: 400;
}

/* Three Pillars Display */
.pillars-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pillar-icon {
  width: 28px;
  height: 28px;
  stroke: #00d4ff;
  stroke-width: 2;
  fill: none;
}

.pillar-text {
  font-size: 1.75rem;
  color: #ffffff;
  font-weight: 400;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.pillar-divider {
  width: 1px;
  height: 3rem;
  background: rgba(0, 212, 255, 0.3);
  /* display: none; */
}

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Application Cards */
.application-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.application-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.application-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* Application Header */
.application-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Application Icon */
.application-icon {
  width: 72px;
  height: 72px;
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.application-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* Application Title and Features Container */
.application-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 72px; /* Match icon height */
}

/* Application Title */
.application-title {
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  /* margin-bottom: 1rem; */
  line-height: 1.2;
}

/* Application Features */
.application-features {
  margin-bottom: 0;
  align-self: flex-start;
}

.feature-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 0.25rem 0.75rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Application Description */
.application-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 1.1rem;
  margin: 2rem 0 0 0;
  position: relative;
  z-index: 1;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Research Grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.research-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.research-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.research-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.research-item:hover::before {
  opacity: 1;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.item-category {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.item-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.item-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.item-main-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.item-main-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.item-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.item-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.item-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.research-item:hover .item-link {
  color: white;
}

.item-link svg {
  transition: transform 0.3s ease;
}

.research-item:hover .item-link svg {
  transform: translateX(2px);
}

.section-footer {
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 400;
  padding: 1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.view-all-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.view-all-btn svg {
  transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
  transform: translateX(2px);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Connect Grid */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.connect-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  text-align: center;
}

.connect-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  color: white;
}

.connect-icon {
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.connect-card:hover .connect-icon {
  opacity: 1;
}

.connect-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: white;
}

.connect-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 70px;
  }

  .hero-container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .content-container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .research-item,
  .stat-card,
  .connect-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Enhanced Mobile Responsive Design - 640px breakpoint */
@media (max-width: 640px) {
  /* Three Pillars - Vertical Stack on Mobile */
  .pillars-wrapper {
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin: 1rem 0 2rem 0 !important;
    width: 100%;
  }

  .pillar-item {
    flex: none !important;
    min-width: auto !important;
    justify-content: center !important;
    width: 100%;
  }

  .pillar-divider {
    display: none !important;
  }

  .pillar-text {
    font-size: 1.25rem !important;
  }

  /* Main Title - Mobile Font Size */
  h1[style*="font-size: 5rem"] {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 1rem;
  }

  /* Applications Grid - Single Column */
  .applications-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .application-card {
    padding: 1.5rem !important;
  }

  .application-title {
    font-size: 1.25rem !important;
  }

  .application-icon {
    width: 56px !important;
    height: 56px !important;
  }

  .application-content {
    height: auto !important;
  }

  /* Research Grid - Single Column */
  .research-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .research-item {
    padding: 1.25rem !important;
  }

  /* Connect Grid - Better Mobile Layout */
  .connect-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .connect-card {
    padding: 1.5rem !important;
  }

  /* Section Spacing */
  .section-block {
    margin-bottom: 3rem !important;
  }

  .content-section {
    padding: 3rem 0 !important;
  }

  .content-container {
    padding: 0 1rem !important;
  }
}

/* Enhanced Mobile Responsive Design - 480px breakpoint */
@media (max-width: 480px) {
  /* Hero Section */
  .hero-title {
    font-size: 2rem !important;
    padding: 0 1rem;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.5;
    padding: 0 1rem;
  }

  .hero-container {
    padding: 0 1rem !important;
  }

  /* Main Title - Extra Small Screens */
  h1[style*="font-size: 5rem"] {
    font-size: 1.75rem !important;
  }

  .pillar-text {
    font-size: 1.1rem !important;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.75rem !important;
  }

  /* Application Cards - More Compact */
  .application-card {
    padding: 1.25rem !important;
  }

  .application-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .application-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .application-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .application-title {
    font-size: 1.1rem !important;
  }

  .application-description {
    font-size: 0.95rem !important;
  }

  /* Research Items */
  .research-item {
    padding: 1rem !important;
  }

  .item-title {
    font-size: 1.1rem !important;
  }

  /* Connect Cards */
  .connect-card {
    padding: 1.25rem !important;
  }

  .connect-title {
    font-size: 1.1rem !important;
  }

  /* Section Spacing - More Compact */
  .section-block {
    margin-bottom: 2.5rem !important;
  }

  .content-section {
    padding: 2.5rem 0 !important;
  }
}

/* Tablet Specific Optimizations - 768px */
@media (max-width: 768px) and (min-width: 641px) {
  /* Main Title - Tablet Size */
  h1[style*="font-size: 5rem"] {
    font-size: 3rem !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
  }

  .pillars-wrapper {
    gap: 1.5rem !important;
  }

  .pillar-text {
    font-size: 1.5rem !important;
  }

  /* Applications Grid - May fit 2 columns on larger tablets */
  .applications-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .section-block {
    margin-bottom: 4rem !important;
  }

  .content-section {
    padding: 4rem 0 !important;
  }
}

/* Large screens optimization */
@media (min-width: 1200px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
  }

  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }

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

  .research-item,
  .stat-card,
  .connect-card {
    animation: fadeInUp 0.6s ease-out;
  }

  .research-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .research-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  .research-item:nth-child(3) {
    animation-delay: 0.3s;
  }

  .stat-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .stat-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .stat-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  .stat-card:nth-child(4) {
    animation-delay: 0.4s;
  }

  .connect-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .connect-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .connect-card:nth-child(3) {
    animation-delay: 0.3s;
  }
}
