/* Global Variables */
:root {
  --primary-color: #4169E1;
  --secondary-color: #002147;
  --accent-color: #f1f3f6;
  --text-color: white;
  --font-family-main: 'Montserrat', sans-serif;
  --font-family-heading: 'Montserrat', sans-serif;
  --transition-speed: 0.3s;
  --base-font-size: 16px;
}

/* Add these at the top of your CSS file, after the :root section */
html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  /* Keep your other body styles */
}

/* Add this to ensure content doesn't start too far down */
main {
  display: block;
  width: 100%;
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-main);
  margin: 0;
  padding: 0;
  background: #E0E0E0;
  color: black;
  transition: background-color var(--transition-speed);
  font-size: var(--base-font-size);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, p {
  margin: 0;
  font-family: var(--font-family-heading);
  letter-spacing: 0.5px;
}

ul, ol {
  padding-left: 20px;
}

/* Header Styles - Improved for Responsiveness */
header {
  position: relative;
  color: var(--text-color);
  text-align: left;
  padding: 40px 20px;
  overflow: hidden;
  background-image: url('new.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 300px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

header .logo {
  z-index: 3;
  position: relative;
  margin-bottom: 15px;
}

header .logo img {
  width: 100px;
  margin: 0;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 3;
  position: relative;
  color: white;
  margin: 0 0 20px 0;
  max-width: 600px;
}

.cta-button {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  font-size: 1rem;
  z-index: 3;
  position: relative;
  display: inline-block;
}

.cta-button:hover {
  background-color: #3558A1;
}

/* Hide mobile menu toggle by default */
.mobile-menu-toggle {
  display: none;
}

/* Hide header icons completely since they're redundant with the menu */
.header-icons {
  display: none !important; /* Use !important to override the media query */
}

/* Navigation Bar Styling */
.top-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
}

.top-nav ul {
  list-style: none;
  display: flex;
  padding: 0;
}

.top-nav ul li {
  margin-left: 20px;
}

.top-nav ul li:first-child {
  margin-left: 0;
}

.top-nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease;
}

.top-nav ul li a:hover {
  color: var(--primary-color);
}

/* Menu Container - Hidden by default */
.menu-container {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  width: 200px;
  flex-direction: column;
  background-color: var(--secondary-color);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.menu-item {
  background: none;
  border: none;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Container for content boxes */
.content-box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 40px auto;
  padding: 0 15px;
  max-width: 1200px;
}

/* Content Box Styles */
.content-box {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.content-box img.section-image {
  max-width: 100px;
  margin-bottom: 15px;
}

.content-box h2 {
  margin: 0 0 15px 0;
  text-align: center;
  color: var(--secondary-color);
}

.content-box h4 {
  margin-bottom: 15px;
  text-align: center;
}

.content-box p, .content-box ul, .content-box ol {
  text-align: left;
  width: 100%;
}

.content-box ul li {
  margin-bottom: 8px;
}

/* Section for downloading images */
#download .content-box {
  text-align: center;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

#download img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#download img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Crypto Ticker */
#crypto-ticker {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  background-color: var(--secondary-color);
  color: white;
  font-size: 16px;
  padding: 12px 0;
  font-family: var(--font-family-main);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

#crypto-ticker-content {
  display: inline-block;
  animation: scroll-left 150s linear infinite;
}

#crypto-ticker-content span {
  margin: 0 10px;
}

#crypto-ticker-content img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Improved Footer */
footer {
  background: var(--secondary-color);
  color: var(--text-color);
  padding: 25px 20px;
  text-align: center;
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Scroll Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.8s ease-out;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  /* Header adjustments for mobile */
  header {
    align-items: center;
    text-align: center;
    padding: 30px 15px;
  }
  
  header h1 {
    font-size: 1.8rem;
    text-align: center;
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  header .logo img {
    width: 80px;
  }
  
  /* Hide desktop navigation on mobile */
  .top-nav {
    display: none;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    padding: 5px;
  }
  
  .mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
  }
  
  .mobile-menu-toggle span:last-child {
    margin-bottom: 0;
  }
  
  /* Ensure header icons stay hidden */
  .header-icons {
    display: none !important;
  }
  
  /* Adjust content boxes for mobile */
  .content-box-container {
    flex-direction: column;
  }
  
  .content-box {
    width: 100%;
    min-width: unset;
  }
  
  /* Footer adjustments */
  .footer-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  #download img {
    width: 100px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}