


body{
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  /* Hide scrollbars while keeping scrolling enabled */
  -ms-overflow-style: none; /* IE and old Edge */
  scrollbar-width: none; /* Firefox */
  font-family: "Russo One";
  font-weight: 400;
  font-style: normal;
}

/* Chrome, Safari, Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Disable page scroll when applied */
html.no-scroll, body.no-scroll{
  overflow: hidden;
}

/* Hide scrollbars globally while allowing scrolling */
html{
  -ms-overflow-style: none; /* IE and old Edge */
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar{
  display: none; /* Chrome, Safari, Opera */
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: -webkit-linear-gradient(to right, #2F80ED, #56CCF2);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #2F80ED, #56CCF2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}


.nav-menu {
  display: flex;
  color: black;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: white; /* Default desktop ke liye */
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Phone screens (768px and below) */
@media (max-width: 768px) {
  .nav-link {
    color: black;
  }
}




.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: #56CCF2;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.bar {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    color: black;
    left: -100%;
    top: 70px;
  
    flex-direction: column;
 background-color: white;
    /* backdrop-filter: blur(10px); */
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    gap: 1rem;
  }
  
  .nav-menu.active {
    left: 0;
    color: black;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: 0;
  }
  
  .nav-link::before {
    border-radius: 0;
  }
  
  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-logo a {
    font-size: 1.5rem;
  }
}

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Russo One";
  font-weight: 400;
  font-style: normal;
}

#globe-container{
  margin: 0 auto;
  width: 100%;
  /* height: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
}

#globe-container canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 500px;
  max-height: 500px;
  background: transparent !important;

}

#globe-shadow{
  width: 200px;
  height: 10px;
  border-radius: 100%;
  background: rgba(0,0,0,0.019);
  margin: 0 auto;
}

.container{
  background: #56CCF2;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #2F80ED, #56CCF2);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #2F80ED, #56CCF2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 1rem;
margin-top: 10px;
  position: relative;
  overflow-x: hidden;
}

.hidden{
	display: none;
}

.grid{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
}

.content-left {
  flex: 1;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-right {
  flex: 1;
  min-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1{
  font-size: 4rem;
  color: white;
  letter-spacing: 2px;
  margin: 0;
  font-weight: 700;
}

.tagline {
  color: white;
  font-size: 1.25rem;
  margin: 0;
  opacity: 0.9;
}

.metric-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.metric-card {
  background: rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
  transition: all 0.3s ease;
  flex: 1;
}

.metric-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.metric-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.metric-text {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.cta-button {
  background: rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 2rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.play-icon {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2F80ED;
  font-size: 0.8rem;
}

.bottom-section {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
}

.motto {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  font-style: italic;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.9rem;
}

.chevron {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

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

.wrapper{
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 80px;
  /* margin-top: 50px; */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-total-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .grid {
    gap: 2rem;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  .metric-cards {
    gap: 0.75rem;
  }
  
  .metric-card {
    min-width: 180px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
    min-height: 100vh;
    height: auto;
  }
  
  .grid {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 0;
    align-items: flex-start;
  }
  
  .content-left, .content-right {
    flex: 1 1 auto;
    min-width: auto;
    width: 100%;
  }
  
  .content-left {
    order: 1;
    text-align: left;
    align-items: flex-start;
  }
  
  .content-right {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  #globe-container canvas {
    max-width: 300px;
    max-height: 300px;
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  .metric-cards {
    justify-content: flex-start;
    gap: 0.75rem;
  }
  
  .metric-card {
    min-width: 140px;
    padding: 0.75rem;
  }
  
  .cta-button {
    align-self: flex-start;
  }
  
  .wrapper {
    padding: 0;
    height: auto;
  }
  
  #globe-shadow {
    width: 120px;
    height: 6px;
  }
  
  .bottom-section {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }
  
  .wrapper {
    padding: 0;
  }
  
  .grid {
    gap: 1.5rem;
    padding: 1rem 0;
  }
  
  #globe-container canvas {
    max-width: 350px;
    max-height: 350px;
    width: 100% !important;
    height: auto !important;
  }
  
  h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  .tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .metric-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .metric-card {
    width: 100%;
    max-width: 280px;
  }
  
  #globe-shadow {
    width: 120px;
    height: 6px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 0.9rem;
  }
  
  #globe-container canvas {
    max-width: 400px;
    max-height: 400px;
    width: 100% !important;
    height: auto !important;
    top: -40%;
    position: relative;
  }
  
  #globe-shadow {
    width: 100px;
    height: 5px;
  }
}

/* Enhanced Mobile-First Phone UI */
@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
    min-height: 100vh;
    height: auto;
    justify-content: flex-start;
    padding-top: 80px; /* Account for fixed navbar */
  }
  
  .wrapper {
    padding: 0;
    height: auto;
    
    min-height: calc(100vh - 300px);
  }
  
  .grid {
    flex-direction: row;
    gap: 1rem;
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
  }
  .wrapper{
 
    margin-top: -10px;
    margin-bottom: 30px;

    /* margin-top: 50px; */
  
  }
  
  
  .content-left {
    order: 1;
    text-align: left;
    align-items: flex-start;
    gap: 1.5rem;
    width: 60%;
    position: relative;
  }
  
  .content-right {
    order: 2;
    width: 40%;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    top: 0;
    z-index: 2;
  }
  
  h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-align: left;
  }
  
  .tagline {
    font-size: 0.95rem;
    padding: 0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: left;
  }
  
  .metric-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  
  .metric-card {
    width: 100%;
    padding: 0.75rem;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-direction: column;
    text-align: center;
  }
  
  .metric-icon {
    font-size: 1rem;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin: 0 auto;
  }
  
  .metric-text {
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: center;
  }
  
  .cta-button {
    align-self: flex-start;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  #globe-container {
    margin: 0;
    width: 100%;
    max-width: 280px;
    position: absolute;
    top: -20px;
    right: -20px;
  }
  
  #globe-container canvas {
    max-width: 280px;
    max-height: 280px;
    width: 100% !important;
    height: auto !important;
    top: -30%;
    position: relative;
  }
  
#Heading-top{
  font-size: medium;
}


  #globe-shadow {
    width: 100px;
    height: 5px;
    margin-top: 0.5rem;
    position: absolute;
    top: 180px;
    right: 30px;
  }
  
  .bottom-section {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
    padding: 0 1rem;
  }
  
  .motto {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  
  .scroll-indicator {
    gap: 0.5rem;
  }
  
  .scroll-indicator span {
    font-size: 0.85rem;
  }
  
  .chevron {
    font-size: 1.25rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0.5rem;
    padding-top: 80px;
  }
  
  .grid {
    gap: 0.75rem;
    padding: 0.75rem 0;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .content-left {
    width: 60%;
    position: relative;
  }
  
  .content-right {
    width: 40%;
    position: relative;
    z-index: 2;
  }
  
  h1 {
    font-size: 2rem;
    text-align: left;
  }
  
  .tagline {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    text-align: left;
  }
  
  .metric-cards {
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
  }
  
  .metric-card {
    padding: 0.75rem;
    flex-direction: column;
    text-align: center;
  }
  
  .metric-icon {
    margin: 0 auto;
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
  }
  
  .metric-text {
    text-align: center;
    font-size: 0.7rem;
  }
  
  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  #globe-container {
    position: absolute;
    top: -15px;
    right: -20px;
    max-width: 220px;
  }
  
  #globe-container canvas {
    max-width: 220px;
    max-height: 220px;
    top: -25%;
    position: relative;
  }
  
  #globe-shadow {
    width: 80px;
    height: 4px;
    position: absolute;
    top: 150px;
    right: 20px;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0.5rem;
    padding-top: 80px;
  }
  
  .grid {
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .content-left {
    width: 60%;
    position: relative;
  }
  
  .content-right {
    width: 40%;
    position: relative;
    z-index: 2;
  }
  
  h1 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    text-align: left;
  }
  
  .tagline {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: left;
  }
  
  .metric-cards {
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
  }
  
  .metric-card {
    padding: 0.625rem;
    flex-direction: column;
    text-align: center;
  }
  
  .metric-icon {
    font-size: 0.8rem;
    width: 25px;
    height: 25px;
    margin: 0 auto;
  }
  
  .metric-text {
    font-size: 0.65rem;
    text-align: center;
  }
  
  .cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
  
  #globe-container {
    position: absolute;
    top: -10px;
    right: -10px;
    max-width: 180px;
  }
  
  #globe-container canvas {
    max-width: 180px;
    max-height: 180px;
    width: 100% !important;
    height: auto !important;
    top: -35%;
    position: relative;
  }
  
  #globe-shadow {
    width: 60px;
    height: 3px;
    position: absolute;
    top: 120px;
    right: 15px;
  }
  
  .bottom-section {
    margin-top: 1.5rem;
  }
  
  .motto {
    font-size: 0.9rem;
  }
}

/* Footer */
.site-footer{
  background: linear-gradient(to right, #2F80ED, #56CCF2);
  color: #fff;
  width: 100vw;
}

.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links{
  display: flex;
  gap: 1rem;
}

.footer-links a{
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}

.footer-links a:hover{
  text-decoration: underline;
}

@media (max-width: 600px){
  .footer-inner{
    flex-direction: column;
    text-align: center;
  }
}

/* Extra small phones */
@media (max-width: 280px) {
  .container {
    padding: 0.25rem;
    padding-top: 80px;
  }
  
  .grid {
    gap: 0.25rem;
    padding: 0.25rem 0;
  }
  
  .content-left {
    width: 65%;
  }
  
  .content-right {
    width: 35%;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .tagline {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .metric-cards {
    gap: 0.25rem;
  }
  
  .metric-card {
    padding: 0.5rem;
  }
  
  .metric-icon {
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
  }
  
  .metric-text {
    font-size: 0.6rem;
  }
  
  .cta-button {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
  }
  
  #globe-container {
    position: absolute;
    top: -5px;
    right: -5px;
    max-width: 120px;
  }
  
  #globe-container canvas {
    max-width: 120px;
    max-height: 120px;
    top: -15%;
    position: relative;
  }
  
  #globe-shadow {
    width: 40px;
    height: 2px;
    position: absolute;
    top: 85px;
    right: 10px;
  }
}









#Second-page{
  background: -webkit-linear-gradient(to right, #2F80ED, #A5D6A7);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #2F80ED, #56CCF2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  height:fit-content;
  width: 100vw;
  scroll-margin-top: 20px;
}

/* About Section */
#about{
  background: linear-gradient(to right, #2F80ED, #56CCF2);
  width: 100vw;
}

.about-section{
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 64px;
  color: #fff;
}

.about-title{
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, #FFFFFF, #D6EEFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-subtitle{
  text-align: center;
  opacity: .95;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.about-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.about-card{
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.about-card:hover{
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255,255,255,0.28);
}

.about-card-title{
  font-size: 1rem;
  opacity: 0.95;
}

.about-card-text{
  opacity: 0.95;
  line-height: 1.5;
}

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* Planet Health Details */
.details-section{
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 64px;
  position: relative;
}

.details-title{
  color: #fff;
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #FFFFFF, #D6EEFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.details-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.details-card{
  background: rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
 
}

.details-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255,255,255,0.28);
}


.details-card-title{
  font-size: 0.95rem;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

.details-card-metric{
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.1;
}

.details-card-cta{
  margin-top: 0.5rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  cursor: pointer;

}

.details-card-cta:hover{
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

@media (max-width: 768px){
  .details-grid{
    grid-template-columns: 1fr;
  }
}

.chart-container{
  width: 100%;
  height: 320px;
  margin-top: 0.5rem;
}

.chart-container canvas{
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 900px){
  .chart-container{ height: 280px; }
}

@media (max-width: 600px){
  .chart-container{ height: 240px; }
}

/* Improve chart readability on small phones */
@media (max-width: 480px){
  .chart-container{ height: 340px; }
}

@media (max-width: 360px){
  .chart-container{ height: 400px; }
}

/* Reveal on scroll */
.reveal{ opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }




#Welcome-screen{
  position: fixed;
  height:100vh;
  width: 100vw;
  top: 0;
  /* Match page gradient to avoid white flash */
  overflow: hidden;
  background-color: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* display: none; */
}

/* Loading Bar Styles */
.loading-container {
  margin-top: 40px;
  text-align: center;
}

.loading-bar {
  width: 300px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive loading bar */
@media (max-width: 768px) {
  .loading-bar {
    width: 250px;
    height: 20px;
  }
  
  .loading-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .loading-bar {
    width: 200px;
    height: 5px;
    height: 20px;

  }
  
  .loading-text {
    font-size: 12px;
  }
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #2F80ED, #56CCF2);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(47, 128, 237, 0.5);
}

.loading-text {
  font-size: 16px;
  color: #666;
  font-weight: 500;
  margin-top: 10px;
}

/* Calculator Section */
.calculator-section{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: -webkit-linear-gradient(to right, #2F80ED, #56CCF2);
  background: linear-gradient(to right, #2F80ED, #56CCF2);
  color: #fff;
}

.calc-container{ 
  max-width: 1100px; 
  margin: 0 auto; 
  width: 100%;
}

.calc-title{  
  font-weight: 800; 
  font-size: clamp(24px, 4.5vw, 52px);
  text-align: center; 
  margin: 0 0 8px; 
}

.calc-subtitle{ 
  text-align: center; 
  opacity: .9; 
  margin-bottom: 32px; 
  font-size: clamp(14px, 2.2vw, 18px);
}

.calc-card{
  background: rgba(255,255,255,0.12);
  /* backdrop-filter: blur(14px); */
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  
  width: 100%;
}

.calc-row{ 
  display: flex; 
  gap: 12px; 
  margin-bottom: 20px;
}

.calc-input{
  flex: 1;
  border: 1px solid rgba(255,255,255,0.25);
  outline: none;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 16px;
  background: rgba(255,255,255,0.15);
  color: #0c2a4d;
}

.calc-button{
  background: #2F80ED;
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(47,128,237,0.35);
  transition: all 0.3s ease;
}

.calc-button:hover{ 
  background: #256ad1; 
}

.calc-button:disabled {
  background: #6b9de8;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.calc-button:disabled:hover {
  background: #6b9de8;
  transform: none;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.calc-button:disabled {
  animation: pulse 1.5s ease-in-out infinite;
}

.calc-result{ 
  display: grid; 
  grid-template-columns: auto 1fr; 
  align-items: end; 
  gap: 16px; 
  margin-bottom: 16px;
}

.calc-value{ 
  font-size: clamp(44px, 7.5vw, 72px); 
  font-weight: 900; 
  letter-spacing: -0.5px;
}

.calc-value .calc-unit{ 
  font-size: 0.45em; 
  font-weight: 700; 
  margin-left: 6px; 
  opacity: .95;
}

.calc-note{ 
  opacity: .95;
}

.calc-fact{ 
  background: rgba(255,255,255,0.18); 
  border: 1px solid rgba(255,255,255,0.28); 
  padding: 16px; 
  border-radius: 14px; 
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.calc-fact-title{ 
  font-weight: 700; 
  margin-bottom: 4px;
}

.calc-fact-text{ 
  opacity: .95;
}

/* Main Layout Control - This is the key part */
#Second-main{
  display: flex; /* FLEX for PC */
  justify-content: center;
  align-items: center;
  gap: 40px; /* Space between calculator and earth */
  width: 100%;
}

.box{
  width: 500px;
  height: 500px;
  flex-shrink: 0; /* Prevent SVG from shrinking */
}

/* Utility classes */
.gradient-text{
  background: linear-gradient(to right, #2F80ED, #56CCF2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.responsive-text{
  font-size: clamp(1.25rem, 6vw, 3rem);
  line-height: 1.1;
}

/* MOBILE: Block layout */
@media (max-width: 768px) {
  #Second-main {
    display: block; /* BLOCK for mobile */
    text-align: center;
  }
  
  .calc-container {
    margin-bottom: 30px; /* Add space between calculator and earth */
  }
  
  .box {
    width: 300px;
    height: 300px;
    margin: 0 auto; /* Center the earth SVG */
  }
}

/* Smaller mobile adjustments */
@media (max-width: 640px) {
  .calc-row { 
    flex-direction: column;
  }
  
  .calc-button { 
    width: 100%;
  }
  
  .calc-result { 
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .box {
    width: 200px;
    height: 200px;
  }
}

/* Earth hovering animation */
/* #earth {
  animation: hover 3s ease-in-out infinite;
}

@keyframes hover {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
} */

#News-page{
  width: 280px;
  height: 90px;
  z-index: 999;
  right: 0;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  bottom:70%;
  background-color: white;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  #News-page {
    display: none;
  }
  #News-page-phone {
    display: block;
  }
}



.news-item {
  position: relative;
  width: 100%;
  height: 100%;
  user-select: none;
}

.news-item:hover {
  background-color: #f5f5f5;
}

.news-image img {
  transition: transform 0.3s ease;
}

.news-image img:hover {
  transform: scale(1.05);
}

/* Loading state for news */
#News-page::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hide loading spinner when news is loaded */
#News-page.loaded::before {
  display: none;
}




#News-page-phone{
  display: none;
  background-color: white;
  height: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  width: 280px;
  position: relative;
  overflow: hidden;
  z-index: 999;
}

/* Loading state for news (phone) */
#News-page-phone::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

/* Hide loading spinner when news is loaded (phone) */
#News-page-phone.loaded::before {
  display: none;
}

/* Ensure phone news is visible on small screens (override later base rule) */
@media (max-width: 768px) {
  #News-page-phone {
    display: block;
  }
}




#weather-page{
  background: -webkit-linear-gradient(to right, #2F80ED, #56CCF2);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #2F80ED, #56CCF2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  width: 100vw;
  color: white;
  height:fit-content;
}

/* Weather UI */
.weather-wrapper{
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 24px 24px;
}

.weather-card{
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 24px;
}

.weather-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.weather-title{
  font-size: 32px;
  color:white;
}

.weather-location{
  color:white;
  margin-bottom: 16px;
}

.weather-search{ display: flex; gap: 8px; }
.weather-search input{
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  border-radius: 12px;
  min-width: 180px;
}
.weather-search button{
  border: none;
  background:white;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.current-row{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 12px 0 18px;
  border-bottom: 1px solid #eceff1;
}

.current-main{
  display: flex;
  align-items: center;
  gap: 14px;
}

.current-icon{
  font-size: 44px;
}

.current-temp{
  font-size: 52px;
  color:white;
  letter-spacing: 1px;
}

.metrics{
  display: flex;
  align-items: center;
  gap: 28px;
}

.metric{
  font-size: 20px;
  color:white;
}

.metric span{
  display: block;
  font-size: 14px;
  color:white;
}

.forecast-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.forecast-item{
  border: 1px solid #eceff1;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: white;
}

.forecast-day{
  font-weight: 700;
  margin-bottom: 8px;
}

.forecast-icon{
  font-size: 28px;
  margin: 6px 0;
}

.forecast-desc{
  color: white;
  font-size: 14px;
  margin-bottom: 8px;
}

.forecast-temps{
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
}

@media (max-width: 768px){
  .current-row{ grid-template-columns: 1fr; gap: 10px; }
  .metrics{ justify-content: space-between; }
  .forecast-grid{ grid-template-columns: 1fr; }
}


