/* CSS Variables for consistent theming */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #667eea;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --text-primary: #1a1a1a;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --border: #e5e5e5;
  --border-light: #d1d5db;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero img {
  width: 120px;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin: 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.hero h3 {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

/* Navigation - Floating Icons */
.nav-container {
  position: fixed;
  top: 50vh;
  right: 15px;
  transform: translateY(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.3rem;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow);
  position: relative;
}

.nav-links a:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: none;
}

.nav-links a.active {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: none;
}

/* Desktop tooltips */
.nav-links a::after {
  content: attr(data-label);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  border: 1px solid var(--border);
}

.nav-links a:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation - Bottom Bar */
@media (max-width: 768px) {
  .nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--border);
    padding: 20px 20px;
    z-index: 1100;
  }
  
  .nav-links {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
  }
  
  .nav-links a {
    width: auto;
    height: auto;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    flex-direction: column;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links a.active {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border: none;
  }
  
  /* Disable hover effects on mobile, but allow active state */
  .nav-links a:hover {
    background: transparent;
    color: var(--text-secondary);
    transform: none;
    box-shadow: none;
    border: none;
  }
  
  .nav-links a.active {
    background: var(--primary);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border: none;
  }
  
  /* Show labels permanently on mobile */
  .nav-links a::after {
    content: attr(data-label);
    position: static;
    transform: none;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.7rem;
    opacity: 1;
    visibility: visible;
    border: none;
    font-weight: 500;
  }
  
  /* Adjust content padding to account for bottom nav */
  .section {
    padding-bottom: 100px;
  }
}

/* Sections */
.section {
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background);
}

.content {
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.content.visible {
  opacity: 1;
  transform: translateY(0);
}

.content img {
  width: 60px;
  margin-bottom: 20px;
}

.content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-weight: 700;
  margin: 20px 0 10px;
}

.content p,
.content ul li {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content ul {
  list-style: none;
  padding-left: 20px;
}

.content ul li {
  position: relative;
  margin-bottom: 15px;
}

.content ul li::before {
  content: "▶";
  color: var(--primary);
  position: absolute;
  left: -20px;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.tool-card h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 15px;
}

.tool-card p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

.tool-card .cta-button {
  margin-top: auto;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 15px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Mobile footer adjustment */
@media (max-width: 768px) {
  footer {
    padding-bottom: 100px; /* Account for fixed bottom navigation */
  }
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

footer a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 { 
    font-size: 2rem; 
  }
  .hero h3 { 
    font-size: 1rem; 
  }
  .nav-links a {
    width: 50px;
    height: 45px;
    font-size: 1.1rem;
  }
  .content { 
    padding: 20px; 
  }
  .content h1 { 
    font-size: 1.8rem; 
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tool-card {
    padding: 20px;
  }
  
  .tool-card h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero h3 {
    font-size: 0.9rem;
  }
  
  .content {
    padding: 15px;
  }
  
  .content h1 {
    font-size: 1.5rem;
  }
  
  .content h2 {
    font-size: 1.3rem;
  }
  
  .content p,
  .content ul li {
    font-size: 1rem;
  }
  
  .tool-card {
    padding: 15px;
  }
  
  .tool-card h2 {
    font-size: 1.3rem;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Link styles */
.content a:not(.cta-button) {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.content a:not(.cta-button):hover {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

/* Focus styles for accessibility */
.cta-button:focus,
.nav-links a:focus,
.content a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
} 