* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: url('.../assets/bg.jpg') no-repeat center center/cover;
  color: white;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* After load */
body.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 70px;  /* medium padding */
  background: rgba(0,0,0,0.4);
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  margin-left: 30px;
  text-decoration: none;
  color: #ddd;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #00C6FF;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00C6FF;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Navigation Links */
nav a {
  margin-left: 30px;    
  text-decoration: none;
  color: #ddd;
  font-weight: 500;
  font-size: 16px;      
  transition: 0.3s;
}
nav a:hover {
  color: #00C6FF;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    gap: 18px;             
    overflow-x: auto;         
    white-space: nowrap;      
    scrollbar-width: none;     /
    padding: 8px 10px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;             
  }

  .nav-links a {
    font-size: 14px;
    padding: 8px 14px;
    flex-shrink: 0;
    text-decoration: none;
    color: white;
    transition: 0.3s;
  }
  .nav-links a:hover {
    color: #16c47f; 
  }
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 80px;
  min-height: 90vh;
}

.hero-text {
  max-width: 45%;
}

.small-title {
  color: #34ff06; 
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}


.hero-text h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-text h1 span {
  color: #c4ff038e;
}

/* mobile optimization */
@media (max-width: 768px) {
 
  .hero {
    flex-direction: column;    
    text-align: center;         
    padding: 40px 20px;         
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 28px;            
    line-height: 1.3;
  }

  .description {
    font-size: 16px;
    line-height: 1.5;
  }

 
  .hero-image img {
    width: 75%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* Center buttons */
  .btn-secondary {
    display: inline-block;
    margin-top: 15px;
  }
}


.description {
  color: #ccc;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-cute {
  padding: 12px 34px;
  font-size: 17px;
  font-weight: 700;
  color: white; 
  background: #16c47f; 
  border: none;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(22, 196, 127, 0.3);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Cute Hover Effect */
.btn-cute:hover {
  background: #13a66b; 
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(22, 196, 127, 0.5);
}

.btn-cute::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-cute:hover::after {
  left: 100%;
}


/* Hero Image & Card */
.hero-image {
  position: relative;
  transform: translateX(-80px); 
}

.hero-image img {
  width: 350px;
  border-radius: 20px;
}


/* hero text */
.hero-text {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  animation: fadeUpCool 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* hero image */
.hero-image {
  opacity: 0;
  transform: translateX(80px) scale(0.95);
  animation: fadeLeftCool 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

/* Keyframes */
@keyframes fadeUpCool {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeLeftCool {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}


.logo-text {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff; 
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(22, 196, 127, 0.3); 
}

.emoji {
  font-size: 34px;
  margin-left: 6px;
  display: inline-block;
  color: #16c47f; 
  filter: drop-shadow(0 0 5px rgba(22, 196, 127, 0.4));
}
 /* mobile optimization */
 @media (max-width: 768px) {
  
  .logo-text {
    font-size: 22px;      
    font-weight: 700;
  }

  .emoji {
    font-size: 20px;     
    margin-left: 4px;
  }

  .navbar {
    padding: 12px 20px;   
  }
}


/* FOOTER */
.footer {
  text-align: center;
  margin-top: 10px; 
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
}

.footer a {
  color: #ffcdf3;
  text-decoration: none;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .footer {
    font-size: 0.8rem;          
    line-height: 1.6;           
    padding: 25px 15px;         
  }

  .footer a {
    display: block;            
    margin-top: 5px;
  }
}


/* Navbar animation */
nav a, .btn-primary {
  opacity: 0;
  transform: translateY(-20px);
  animation: navDrop 0.6s ease-out forwards;
}

/* Animate each nav link with a delay */
nav a:nth-child(1) { animation-delay: 0.2s; }
nav a:nth-child(2) { animation-delay: 0.35s; }
nav a:nth-child(3) { animation-delay: 0.5s; }
nav a:nth-child(4) { animation-delay: 0.65s; }

/* Button animation comes */
.btn-primary {
  animation-delay: 0.8s;
}

.btn-secondary {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: linear-gradient(45deg, #16c47f, #13a66b);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(22, 196, 127, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #13a66b, #16c47f);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(22, 196, 127, 0.5);
}

@keyframes navDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* APP.HTML */
.app-container {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.app-container h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #fff;
}
.subtext {
  color: #ccc;
  margin-bottom: 40px;
}

.converter-card, .live-rates, .crypto-section {
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(12px);          
    -webkit-backdrop-filter: blur(12px);   
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
}

.converter-card {
    margin-left: 0;        
}
.live-rates {
    margin-left: auto;      
    margin-right: 0;
}
.crypto-section {
    margin-left: 0;         
}

.converter-card:hover,
.live-rates:hover,
.crypto-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Inputs and dropdowns */
.converter-inputs input {
    padding: 10px 15px;
    margin: 8px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    -moz-appearance: textfield; 
}
.converter-inputs input::-webkit-outer-spin-button,
.converter-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none; 
    margin: 0;
}

.converter-inputs select {
    padding: 10px 15px;
    margin: 8px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}
.converter-inputs select option {
    color: black; 
}

/* Grid Styles */
.rates-grid, .crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}
.rate-card, .crypto-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.converter-inputs select {
    padding: 10px 15px;
    margin: 8px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2); 
    color: black;
}
.converter-inputs select option {
    color: black; 
}

.converter-inputs input {
    padding: 10px 15px;
    margin: 8px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.8); 
    color: white; 
    -moz-appearance: textfield;
}
.converter-inputs input::-webkit-outer-spin-button,
.converter-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Horizontal top row for first two boxes */
.top-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
    margin-top: 30px;
}

/* Make the boxes responsive */
.top-row .converter-card, 
.top-row .live-rates {
    flex: 1;
    min-width: 300px;
}

/* Crypto section full screen */
.crypto-section {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto 0;
}

.btn-cute {
    margin-top: 12px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff85a2, #ffc8dd);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.btn-cute:hover {
    background: linear-gradient(90deg, #ff6b92, #ffb4d4);
    transform: scale(1.05);
}


/* Grid layouts */
.rates-grid, .crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}



/* Cards */
.rate-card, .crypto-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
}
.rate-card:hover, .crypto-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}
.crypto-card img {
    display: block;
    margin: 0 auto 6px;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield; 
}


/* Responsive */
@media (max-width: 768px) {
  .converter-inputs {
    flex-direction: column;
  }
}

.result {
  display: none;
  margin-top: 15px;
  padding: 12px 15px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-weight: bold;
  color: white;
  animation: fadeSlide 0.5s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ENTER AMOUNT TAB */
#amount {
  width: 200px;
  padding: 10px;
  font-size: 16px;
}

/* Optimize only for mobile screens */
  @media (max-width: 600px) {
    #amount {
      width: 190px;       
      padding: 9px;       
      font-size: 15px;    
    }
  }


/* MORE.HTML */
.glass-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 80px auto 50px;
  padding: 30px;
  max-width: 800px;
  border-radius: 20px;
  text-align: left;
  color: rgb(255, 255, 255);
  animation: fadeIn 0.8s ease-in-out;
}

.glass-container h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 20px;
}

.glass-container ul {
  list-style: none;
  padding: 0;
}

.glass-container ul li {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.6;
}

.glass-container a {
  color: #00c3ff;
  font-weight: bold;
  text-decoration: none;
}

.glass-container a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ABOUT.HTML */
.about-page {
  text-align: center;
}

.about-page p {
  font-size: 16px;
  line-height: 1.7;
  margin: 15px 0 25px;
}

.about-page .thanks {
  max-width: 220px;
  margin: 25px 0;
  animation: floatUp 3s ease-in-out infinite;
}

/* GitHub Link Button */
.github-link {
  margin-top: 20px;
}

.github-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.github-link a img {
  width: 24px;
  height: 24px;
}

.github-link a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
