/* 
 * Non-critical CSS 
 * These styles are loaded asynchronously and don't block rendering
 * Critical styles are inlined in the HTML
 */

/* Additional root variables (critical ones are inlined) */
:root {
  /* Typography */
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Colors */
  --primary-color: #1a365d;
  --primary-hover: #2a4a7f;
  --secondary-color: #4a5568;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-color: #edf2f7;
  --accent-color: #3182ce;
  --highlight-bg: #fff9c4;
  --highlight-text: #333;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Other */
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

/* Custom text selection */
::selection {
  background-color: var(--highlight-bg);
  color: var(--highlight-text);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

::-moz-selection {
  background-color: var(--highlight-bg);
  color: var(--highlight-text);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Additional base styles - most critical ones are inlined */
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text-color);
  background-color: #fff;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #0077cc;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #005fa3;
}

a:visited {
  color: #0077cc;
}

/* Highlight link style */
.highlight-link {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.highlight-link:hover {
  color: var(--primary-hover);
}

.highlight-link:visited {
  color: var(--primary-color);
}

button {
  border: none;
  border-radius: var(--border-radius);
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

button:hover {
  background-color: var(--primary-hover);
}

button:focus, button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: var(--spacing-md) 0 var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

/* Language switcher */
.language-switcher {
  display: flex;
  gap: 8px;
}

.language-switcher button {
  background-color: transparent;
  color: var(--dark-color);
  border: none;
  padding: 0.3em 0.6em;
  cursor: pointer;
  transition: var(--transition);
}

.language-switcher button.active {
  background-color: rgba(26, 54, 93, 0.1);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-weight: 600;
}

.language-switcher button:hover:not(.active) {
  background-color: rgba(26, 54, 93, 0.05);
}

/* Section styles */
section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-md) 0;
  width: 100%;
}

/* Section headings */
.section-icon {
  font-size: 0.9em;
  line-height: 1;
  display: inline-block;
}

h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  line-height: 1.2;
  flex-wrap: wrap;
}

/* Hero section */
#hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

#hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
}

/* Description section */
#description {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* Company info section */
#company-info h2 {
  margin-bottom: var(--spacing-lg);
}

.info-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.info-group {
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  overflow: hidden;
  width: 100%;
  background-color: white;
}

.info-group h3 {
  color: white;
  background-color: var(--primary-color);
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
}

.info-value {
  font-family: 'Inter', monospace;
  word-break: break-word;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.copy-icon {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 1rem;
}

.info-row:hover .copy-icon {
  opacity: 0.7;
}

.info-value.copied {
  position: relative;
}

.info-value.copied::after {
  content: "Copied!";
  position: absolute;
  right: 0;
  top: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Contact section */
#contact {
  text-align: center;
  background-color: var(--light-color);
  padding: var(--spacing-xl) var(--spacing-md);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

#contact h2 {
  margin-bottom: var(--spacing-md);
}

#contact p {
  margin-bottom: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-lg);
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Media queries */
@media (min-width: 768px) {
  header {
    padding-bottom: var(--spacing-xl);
  }
  
  .info-label {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .section-icon {
    margin-right: var(--spacing-xs);
  }
  
  .language-switcher button {
    padding: 0.2em 0.4em;
  }
  
  .info-label, .info-value {
    padding: 0.3rem 0;
  }
  
  .copy-icon {
    display: none;
  }
}
