/* home.css */
@import url('/app/global.css');
@import url('/tailwind.css');
@import url('/fonts.css');
/* @import url('app/navbar/navbar.css'); */

/* Animation and Transitions */
.smoothen-text {
  /* Text rendering optimizations */
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  
  /* Ensure GPU acceleration */
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  
  /* Prevent subpixel rendering issues */
  perspective: 1000px !important;
  
  /* Improved kerning */
  font-kerning: normal !important;
  
  /* Prevent font-size adjustments */
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
  
  /* Sharpen text edges */
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.01) !important;
}

.smoothen-text-animated {
  /* Text rendering optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  
  /* Animation optimizations */
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  
  /* Other text improvements */
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.01);
}

.aviencloud-container {
    position: relative;
    flex: 1;
    text-align: center;
}

.aviencloud-container h1 {
  font-family: var(--font-typograph-pro);
  color: #000000;
  letter-spacing: 0.5em; /* Space between letters */
  text-transform: uppercase;
  display: flex; /* Use flexbox to control layout */
  justify-content: center; /* Center the text */
  white-space: nowrap; /* Prevent wrapping */
}

.w-full {
  /* width: 100%; */
  width: 100vw;
  height: 100vh;
  /* margin-top: -20px; */
}

/* This is the key part - remove the letter spacing between the last and first letter of each span */
.aviencloud-container h1 span:first-child {
  margin-right: 0em; /* Counteract the letter spacing between N and C */
}

/* Dot and ping animation - with improved fading and larger hit area */
.dot-area {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    width: 50px;  /* Increased from 30px to 50px for larger clickable area */
    height: 50px; /* Increased from 30px to 50px for larger clickable area */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease; /* Increased transition time for smoother fade */
    opacity: 0; /* Start hidden */
    /* Debug outline - remove in production */
    /* outline: 1px solid rgba(255, 0, 0, 0.2); */
}

.dot-area.visible {
    opacity: 1;
}

/* Add fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add fade-out animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.dot-area.visible {
    animation: fadeIn 0.6s ease forwards;
}

.dot-area:not(.visible) {
    animation: fadeOut 0.6s ease forwards;
}

.dot {
    position: relative;
    width: 12px;  /* Slightly larger dot */
    height: 12px;
    border-radius: 50%;
    z-index: 5;
}

.white-dot {
    background-color: white;
    box-shadow: 0 0 8px 3px rgba(255, 255, 255, 0.7);
}

.black-dot {
    background-color: black;
    box-shadow: 0 0 8px 3px rgba(0, 0, 0, 0.5);
}

/* Ping effect - using ::before and ::after for ripples */
.dot::before,
.dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    z-index: 2;
    transform-origin: center;
    pointer-events: none;
}

/* First ripple wave */
.dot::before {
    animation: ping-wave 2s ease-out infinite;
}

/* Second ripple wave with delay */
.dot::after {
    animation: ping-wave 2s ease-out 0.5s infinite;
}

/* White dot ripples */
.white-dot::before,
.white-dot::after {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Black dot ripples */
.black-dot::before,
.black-dot::after {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Animation for the ping waves - increased scale for more dramatic effect */
@keyframes ping-wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3); /* Increased from 3 to 4 for more dramatic effect */
        opacity: 0;
    }
}
/* Info card styles */
.info-card {
    position: absolute;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 300px;
    max-width: 80vw;
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-card.visible {
    opacity: 1;
    visibility: visible;
}

.info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Tailwind-inspired utility classes */
.flex { display: flex; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Reset some basic elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Logo positioning */
.fixed-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 50;
}

.logo-image {
  border-radius: 4px;
  position: relative;
  z-index: 10;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin: 40px 0;
  color: #2c3e50;
  font-size: 2.55rem;
}







/* Making home.php responsive on all devices */
/* Desktop | 1281px - 1440px  */
@media (max-width: 1280px) {
  /* None, coded on macbook m1 pro */
}

/* Medium Laptop/Desktop | 1515px - 1920px */
@media (max-width: 1515px) {
 /* None, coded on macbook m1 pro */
}

/* Small Laptop/Desktop | 1024px - 1280px */
@media (max-width: 1024px) {
  /* None, coded on macbook m1 pro */
}

/* Mobile Small Portrait | up to 480px */
/* S20+, iPhone 12, iPhone 13 */
@media (max-width: 480px) and (orientation: portrait) {
  .image-container img {
    width: 17.188rem;
    height: 17.188rem;
    object-fit: contain;
    margin-top: 27.5vh;
    margin-left: -1vh;
  }
  
  .aviencloud-container h1 span {
    font-size: 1.75rem;
    margin-top: -3vh;
  }
}

/* Mobile Small Landscape | up to 950px */
/* S20+, iPhone 14, iPhone 15 Pro in landscape */
@media (max-width: 950px) and (orientation: landscape) {
  .image-container img {
    width: 15.625rem;
    height: 15.625rem;
    object-fit: contain;
    margin-top: 3vh;
    margin-left: -1vh;
  }
  
  .aviencloud-container h1 span {
    font-size: 1.75rem;
    margin-top: -10vh;
  }
}

/* Mobile Large Portrait | 481px - 600px */
/* iPhone 14 Pro Max, Pixel 7 Pro, larger phones */
@media (min-width: 481px) and (max-width: 600px) and (orientation: portrait) {
  .image-container img {
    width: 18rem;
    height: 18rem;
    object-fit: contain;
    margin-top: 28vh;
    margin-left: -1vh;
  }
  
  .aviencloud-container h1 span {
    font-size: 1.9rem;
    margin-top: -3vh;
  }
}

/* Tablet Portrait | 601px - 1024px */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .image-container img {
    width: 35.938rem;
    height: 35.938rem;
    aspect-ratio: 1/1;
    margin-top: 21vh;
    margin-left: -1vh;
  }
  
  .aviencloud-container h1 span {
    font-size: 3.5rem;
    margin-top: -3vh;
  }
}

/* Tablet Landscape | 951px - 1366px */
@media (min-width: 951px) and (max-width: 1366px) and (orientation: landscape) {
  
  .image-container img {
    width: 650px;
    height: 650px;
    aspect-ratio: 1/1;
    margin-top: 5vh;
    margin-left: -3vh;
  }
  
  .aviencloud-container h1 span {
    font-size: 4rem;
    margin-top: -2.5vh;
  }
}