/* 
 * Angielskie Korepetycje - Global Design System
 * ---------------------------------------------
 * Brand Identity:
 * - Primary (Blurple): #657BE6
 * - Accent (Green): #00d47e
 * - Fonts: Montserrat (Headings), Lato (Body)
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-primary: #657BE6;
  --color-primary-dark: #4a5db5;
  /* Darker shade for hovers */
  --color-accent: #00d47e;
  --color-accent-dark: #00b067;
  --color-text-main: #1a1a1a;
  --color-text-secondary: #555555;
  --color-bg-light: #f8f9fc;
  --color-white: #ffffff;
  --color-glass: rgba(255, 255, 255, 0.85);

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #657BE6 0%, #8e9efc 100%);
  --gradient-accent: linear-gradient(135deg, #00d47e 0%, #2ecc71 100%);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Premium feel */
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text-main);
  line-height: 1.2;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-main);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(101, 123, 230, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(101, 123, 230, 0.4);
}

.btn-success {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 212, 126, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 126, 0.4);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
}

/* Header / Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-text-main);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

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

.nav-cta {
  background-color: var(--color-accent);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.nav-cta:hover {
  background-color: var(--color-accent-dark);
}

/* Hero Section Homepage */
.hero-home {
  padding-top: 140px;
  /* Header space */
  padding-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-height: 80vh;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 1;
  position: relative;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
  max-width: 600px;
}

.hero-image-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.hero-blob {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: linear-gradient(135deg, rgba(101, 123, 230, 0.1) 0%, rgba(0, 212, 126, 0.1) 100%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(40px);
}

/* Split Columns */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.split-card {
  padding: var(--spacing-md);
  text-align: center;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.split-card:hover {
  transform: translateY(-5px);
}

.split-card h3 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.split-card p {
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

/* Footer */
.main-footer {
  background-color: #f1f3f9;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

  /* Hide horizontal overflow */
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  /* Hero Section Fixes */
  .hero-home {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 120px;
    min-height: auto;
    gap: 1.5rem;
  }

  .hero-content,
  .hero-visual {
    flex: none;
    width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-blob {
    display: none;
    /* Hide decorative blob on mobile */
  }

  /* Navigation */
  .nav-links {
    display: none;
    /* Mobile menu implementation TODO */
  }

  /* Split Section Fixes */
  .split-section {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Flex containers should wrap */
  [style*="display: flex"] {
    flex-wrap: wrap;
  }

  /* Button groups */
  div[style*="display: flex"][style*="gap"] {
    flex-wrap: wrap;
    justify-content: center !important;
  }

  /* Glass cards in grids */
  .glass-card {
    width: 100%;
    max-width: 100%;
  }

  /* Images should not overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Ensure proper spacing */
  .section {
    padding: 2rem 0;
  }
}

/* Specific fixes for smaller mobile devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Ensure footer wraps properly */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}