/* Root Variables */
:root {
  --primary: #1A365d;
  --secondary: #4B4BFF;
  --accent: #FF4B4B;
  --dark: #1A365d;
  --white: #FFFFFF;
  --gray: #64748B;
  --header-height: 140px;
  --logo-bg: #1B365D;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  padding-top: var(--header-height);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.logo-text {
  font-family: 'Lucida Handwriting', cursive;
  font-size: 4rem;
  color: var(--primary);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  background: var(--white);
}

.section:nth-child(even) {
  background: var(--light);
}

/* Header */
.header {
  background: var(--white);
  padding: 2rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.logo p {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  color: var(--primary);
}

/* Navigation */
.nav {
  display: flex;
  gap: 1rem;
  margin: 0 0rem;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--secondary);
}

/* Language Selector */
.language-selector {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: absolute;
  left: 35%;
  top: 98%;
}

.language-selector img {
  height: 27px;
  border-radius: 2px;
  transition: transform 0.3s;
}

.language-selector img:hover {
  transform: scale(1.2);
}

/* Hero Section */
.hero {
  background: var(--primary);
  color: var(--white); 
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 300px;
  height: auto;
  box-sizing: content-box;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white); 
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Section Padding Adjustments */
#hero,
#business-opportunity,
#theory,
#system-description,
#development-status,
#market-potential {
  padding-top: 10rem;
}

/* Features */
.features {
  padding: 8rem 0 4rem;
  background: var(--white);
  margin-top: -1px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

/* System Description */
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.system-info ul {
  list-style: none;
  margin-bottom: 2rem;
}

.system-info li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.system-info li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.status-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.status-card p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Market Grid */
.Market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.Market-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.Market-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.Market-card p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray);
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

/* Images */
.image-container {
  width: 600px;
  height: auto;
  margin: auto;
  text-align: center;
}

.reference-container {
  width: 600px;
  height: auto;
  margin: auto;
  text-align: center;
}

.reference-swing {
  width: 800px;
  height: auto;
  box-sizing: content-box;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.full-width {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.caption {
  margin-top: 1rem;
  color: var(--gray);
  font-style: italic;
}

/* Image Columns */
.row {
  display: flex;
}

.column {
  flex: 50%;
  padding: 5px;
  text-align: center;
}

/* Video Container */
.video-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Call to Action */
.cta {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s;
}

.button:hover {
  background: #FF6B6B;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }

  .reference-swing {
    width: 100%;
    max-width: 800px;
  }

  .image-container,
  .reference-container {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 992px) {
  :root {
    --header-height: 140px;
  }

  .header {
    padding: 1rem 0;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.4rem;
    font-size: 0.95rem;
  }

  .logo-text {
    font-size: 3rem;
  }

  .logo p {
    font-size: 1rem;
  }

}


@media (max-width: 768px) {
  :root {
    --header-height: 160px;
  }

  .header {
    padding: 0.75rem 0;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  .logo {
    align-items: center;
    padding: 0;
  }

  .logo-text {
    font-size: 2.5rem;
  }

  .logo p {
    margin-top: 0;
    font-size: 0.9rem;
  }

  .nav {
    margin: 0.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

  .language-selector {
    position: static;
    justify-content: center;
    margin-top: 0;
  }

  .language-selector img {
    width: 30px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
  }

  .column {
    flex: 100%;
    max-width: 100%;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .hero p {
    padding: 0 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  #hero,
  #business-opportunity,
  #theory,
  #system-description,
  #development-status,
  #market-potential {
    padding-top: 8rem;
  }

  .video-container {
    padding: 0 1rem;
  }

  video {
    width: 100%;
    height: auto;
  }
}

/* Samsung S21 and similar modern smartphones */
@media (max-width: 412px) {
  :root {
    --header-height: 140px;
  }

  .header {
    padding: 0.5rem 0;
  }

  .header-content {
    gap: 0.3rem;
  }

  .logo-text {
    font-size: 2rem;
  }

  .logo p {
    font-size: 0.8rem;
  }

  .nav {
    gap: 0.15rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.25rem 0.35rem;
  }

  .language-selector {
    gap: 0.75rem;
  }

  .language-selector img {
    width: 22px;
  }

  #hero,
  #business-opportunity,
  #theory,
  #system-description,
  #development-status,
  #market-potential {
    padding-top: 5rem;
  }

  .reference-swing,
  .full-width {
    border-radius: 6px;
  }

  .caption {
    font-size: 0.9rem;
    margin-top: 0.75rem;
  }

  .features-list ul li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}

/* Print styles */
@media print {
  .header {
    position: relative;
    box-shadow: none;
  }

  body {
    padding-top: 0;
  }

  .nav,
  .language-selector,
  .button {
    display: none;
  }
}