/* CSS Variables for theming - Default to light theme */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #0084ff;
  --button-bg: #0077ff;
  --panel-color: #ffffff;
  --link-bg: #f0f0f0;
  --link-hover: #e0e0e0;
  --border-color: rgba(0,0,0,0.1);
}

body.dark {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #00d4ff;
  --button-bg: #005ecc;
  --panel-color: #1a1a1a;
  --link-bg: rgba(255,255,255,0.1);
  --link-hover: rgba(255,255,255,0.2);
  --border-color: rgba(255,255,255,0.1);
}


body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Header Styles */
header {
  position: sticky; /* stays at top while scrolling */
  top: 0;
  z-index: 1000;

  /* Frosted glass effect */
  background: rgba(255, 255, 255, 0.25); /* slightly stronger tint */
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);

  /* Edge and depth shadows to simulate real glass */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 
              0 1px 0 rgba(255, 255, 255, 0.2) inset;

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0; /* keep it full-width, but you can round corners if you want */

  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Smooth transitions for theme switch or scroll */
  transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

/* Dark mode version */
body.dark header {
  background: rgba(20, 20, 20, 0.35); /* slightly darker tint */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), 
              0 1px 0 rgba(255,255,255,0.05) inset;
}


body.dark header {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-color);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#theme-toggle {
  background: var(--link-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

#theme-toggle:hover {
  background: var(--link-hover);
}

.mobile-menu-toggle {
  display: none;
  background: var(--link-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.mobile-menu-toggle:hover {
  background: var(--link-hover);
}

/* Main Content */
main {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 2rem 2rem;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), #ff6b6b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--accent-color), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: rgba(51,51,51,0.7);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

body.dark .subtitle {
  color: rgba(255,255,255,0.7);
}

.link-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;

  /* Glassy base */
  background: rgba(255, 255, 255, 0.15); /* slightly stronger tint */
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);

  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25); /* slightly more visible border */
  color: var(--text-color);
  text-decoration: none;

  /* Depth and realism */
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.2),
    inset 0 -2px 6px rgba(255,255,255,0.12);

  transition: all 0.3s ease;
  position: relative;
}

body.dark .link-button {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.4),
    inset 0 -2px 6px rgba(255,255,255,0.05);
}

.link-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(0, 132, 255, 0.35),
    inset 0 -2px 6px rgba(255,255,255,0.12);
  background: rgba(255, 255, 255, 0.2);
}

body.dark .link-button:hover {
  background: rgba(0,0,0,0.45);
  box-shadow:
    0 12px 30px rgba(0, 212, 255, 0.45),
    inset 0 -2px 6px rgba(255,255,255,0.05);
}

.link-button img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}


/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
  z-index: 10;
  position: relative;
}

footer nav {
  justify-content: center;
  margin-bottom: 1rem;
}

/* Chat Widget Styles */
#chat-toggle {
  display: none;
}

.chat-icon {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-color);
  color: white;
  padding: 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,132,255,0.3);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 60px;
  height: 60px;
  justify-content: center;
}

.chat-icon:hover {
  transform: scale(1.05);
}

.new-msg {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  animation: bounce 1s infinite;
}

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

.chat-window {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 320px;
  height: 450px;
  background: var(--panel-color);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#chat-toggle:checked ~ .chat-window {
  display: flex;
  animation: slideUp 0.3s ease;
}

#chat-toggle:checked ~ .chat-icon .new-msg {
  display: none;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  background: var(--accent-color);
  color: white;
  padding: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.close-btn:hover {
  background: rgba(255,255,255,0.2);
}

.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 1rem;
  max-width: 80%;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
  font-size: 0.85rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble.bot {
  background: var(--link-bg);
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 0.3rem;
}

.bubble.me {
  background: var(--accent-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0.3rem;
}

/* Page-specific styles */
.page-content {
  padding: 120px 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.page-content h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.page-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Mobile Navigation - Hidden by default */
.mobile-nav {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel-color);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  main {
    padding: 120px 1rem 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
    height: calc(100vh - 10rem);
    bottom: 1rem;
    right: 1rem;
  }

  .chat-icon {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  footer {
    margin-bottom: 5rem;
  }
}


/* Tools Grid */
.tools-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tool Card Panel */
.tool-card {
  background: var(--panel-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,132,255,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,132,255,0.15);
}

.tool-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tool-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.tool-card button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  background-color: var(--button-bg);
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tool-card button:hover {
  background-color: #004bb5;
}
/* Add this to your existing style.css file */

/* Fix for tools page content spacing */
.page-content {
  padding: 100px 2rem 2rem; /* Reduced top padding from 120px to 100px */
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .page-content {
    padding: 80px 1rem 2rem; /* Even less padding on mobile */
  }
  
  main {
    padding: 80px 1rem 2rem; /* Adjust main padding for mobile */
  }
}

/* Global Mobile Padding & Responsiveness Fixes */
html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Shared Mobile Styles (up to 768px) */
@media (max-width: 768px) {
  .whatsapp-container,
  .calendar-wrapper,
  .page-content {
    max-width: 100% !important;
    padding: 1rem !important;
    margin: 1rem auto !important;
    box-sizing: border-box !important;
  }

  .calendar-container {
    padding: 0 1rem;
    box-sizing: border-box;
  }

  main {
    padding: 80px 1rem 2rem !important;
  }

  header {
    padding: 1rem !important;
  }

  .row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #countryCode, #phoneNumber {
    width: 100%;
    margin: 0;
  }

  .arrow {
    flex-shrink: 0;
    max-width: 45px;
    max-height: 45px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
}

/* Extra Small Screens (up to 480px) */
@media (max-width: 480px) {
  .whatsapp-container,
  .calendar-wrapper,
  .page-content {
    padding: 0.75rem !important;
    margin: 1rem auto !important;
  }

  .calendar-container {
    padding: 0 0.75rem;
  }

  main {
    padding: 80px 0.75rem 2rem !important;
  }

  .arrow {
    max-width: 40px;
    max-height: 40px;
    font-size: 20px;
  }
}

