/* 
 * iTebuka Minimalistic Landing Page Styles
 * Following 'less is more' principle
 */

:root {
  /* Light Theme (Default) */
  --primary-color: #0052CC;
  --secondary-color: #00B8D9;
  --text-color: #172B4D;
  --light-color: #F4F5F7;
  --white-color: #FFFFFF;
  --background-color: #FFFFFF;
  --nav-text-color: #172B4D;
  --brand-i-color: #2956A8;
  --brand-text-color: #212121;
  --tagline-color: rgba(23, 43, 77, 0.8);
  --shadow-color: rgba(0, 82, 204, 0.2);
  --hover-shadow-color: rgba(0, 82, 204, 0.4);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Typography */
  --font-size-xs: 0.8rem;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-md: 1.2rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 3.5rem;
  
  /* Typography - Mobile */
  --mobile-font-size-xs: 0.75rem;
  --mobile-font-size-sm: 0.85rem;
  --mobile-font-size-base: 0.95rem;
  --mobile-font-size-md: 1.1rem;
  --mobile-font-size-lg: 1.3rem;
  --mobile-font-size-xl: 1.6rem;
  --mobile-font-size-xxl: 2.5rem;
  
  /* Borders and Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-round: 30px;
  --box-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
  --box-shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --box-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  
  /* Animation */
  --transition-speed: 0.3s;
  --transition-function: cubic-bezier(0.165, 0.84, 0.44, 1);
  --theme-transition: background-color 0.3s ease, color 0.3s ease;
  
  /* Fonts */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #4C9AFF;
  --secondary-color: #00C7E6;
  --text-color: #E9EAEE;
  --light-color: #2C3E50;
  --white-color: #1A202C;
  --background-color: #0F172A;
  --nav-text-color: #E9EAEE;
  --brand-i-color: #4C9AFF;
  --brand-text-color: #FFFFFF;
  --tagline-color: rgba(233, 234, 238, 0.8);
  --shadow-color: rgba(76, 154, 255, 0.2);
  --hover-shadow-color: rgba(76, 154, 255, 0.4);
  --box-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --box-shadow-md: 0 4px 10px rgba(0, 0, 0, 0.2);
  --box-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* Base font size for rem calculations */
  height: 100%;
}

body {
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
  min-height: 100vh; /* Ensure full height on mobile */
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  transition: var(--theme-transition);
  -webkit-text-size-adjust: 100%; /* Prevent font size inflation on mobile */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Layout */
.container {
  min-height: 100vh; /* Use min-height instead of fixed height */
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); /* For notch support */
}

/* Navigation Styles */
.top-nav, .bottom-nav {
  padding: var(--space-lg) var(--space-sm);
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.top-nav ul, .bottom-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 3rem;
  justify-content: center;
}

/* Theme Toggle Switch */
.theme-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  width: 50px; /* Fixed width for better touch target */
  height: 24px; /* Fixed height for better touch target */
}

.theme-toggle-track {
  width: 100%;
  height: 100%;
  background-color: var(--light-color);
  border-radius: 12px;
  position: relative;
  transition: var(--transition-speed);
}

.theme-toggle-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--white-color);
  transition: var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .theme-toggle-thumb {
  left: 28px;
  background-color: var(--primary-color);
}

.theme-toggle-icon {
  font-size: 12px;
  color: var(--primary-color);
}

[data-theme="dark"] .theme-toggle-icon {
  color: var(--white-color);
}

/* Content Area */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-lg);
  width: 100%;
  max-width: 100vw;
  position: relative;
}

.logo-container {
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-speed);
  width: auto;
  max-width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo {
  width: 150px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Brand name specific styles */
#brand-name-element {
  margin-bottom: var(--space-md) !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  font-size: var(--font-size-xxl) !important;
  line-height: 1 !important;
  font-family: Montserrat, sans-serif !important;
  transition: var(--theme-transition) !important;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#brand-name-element span:first-child {
  color: var(--brand-i-color) !important;
  font-weight: 700 !important;
  transition: var(--theme-transition) !important;
}

#brand-name-element span:last-child {
  color: var(--brand-text-color) !important;
  font-weight: 700 !important;
  transition: var(--theme-transition) !important;
}

.tagline {
  font-size: var(--font-size-md);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  color: var(--tagline-color);
  transition: var(--theme-transition);
  width: 100%;
  max-width: 100%;
}

/* Navigation Links */
.nav-link {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: var(--space-xs) var(--space-xs);
  transition: color var(--transition-speed);
  outline: none; /* Remove default focus outline */
  display: inline-block; /* For better touch targets */
  min-height: 44px; /* Minimum touch target size */
  line-height: 44px; /* Center text vertically */
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.nav-focus::after {
  width: 100%;
}

/* Additional focused state for keyboard navigation */
.nav-focus {
  box-shadow: 0 0 0 2px var(--primary-color);
  border-radius: var(--border-radius-sm);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
  }
  
  .top-nav ul, .bottom-nav ul {
    gap: 2rem;
  }
  
  #brand-name-element {
    font-size: var(--font-size-xl) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xs: 0.4rem;
    --space-sm: 0.8rem;
    --space-md: 1.2rem;
    --space-lg: 1.5rem;
  }
  
  html {
    font-size: 95%; /* Slightly reduce base font size */
  }
  
  .content {
    padding: 0 var(--space-md);
  }
  
  .top-nav, .bottom-nav {
    padding: var(--space-md) var(--space-xs);
  }
  
  .top-nav ul, .bottom-nav ul {
    gap: 1.5rem;
  }
  
  .logo {
    width: 120px;
  }
  
  .theme-toggle {
    top: 1rem;
    right: 1rem;
  }
  
  #brand-name-element {
    font-size: var(--mobile-font-size-xl) !important;
  }
  
  .tagline {
    font-size: var(--mobile-font-size-md);
  }
  
  .nav-link {
    font-size: var(--mobile-font-size-sm);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 90%; /* Further reduce base font size */
  }
  
  .top-nav ul, .bottom-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logo {
    width: 100px;
  }
  
  .theme-toggle {
    width: 40px;
    height: 20px;
  }
  
  .theme-toggle-thumb {
    width: 16px;
    height: 16px;
  }
  
  [data-theme="dark"] .theme-toggle-thumb {
    left: 22px;
  }
  
  #brand-name-element {
    font-size: var(--mobile-font-size-lg) !important;
  }
  
  .tagline {
    font-size: var(--mobile-font-size-base);
  }
  
  .nav-link {
    padding: var(--space-xs) 0.3rem;
    min-height: 36px;
    line-height: 36px;
  }
}

/* Support for very small screens */
@media (max-width: 360px) {
  html {
    font-size: 85%;
  }
  
  .top-nav ul, .bottom-nav ul {
    gap: 0.5rem;
  }
  
  .logo {
    width: 80px;
  }
  
  #brand-name-element {
    font-size: var(--mobile-font-size-md) !important;
  }
  
  .tagline {
    font-size: var(--mobile-font-size-sm);
  }
} 