/*
 * Main Stylesheet
 * Modernized version of the original Progate site styles
 * Incorporates both stylesheet.css and stylesheet2.css with improvements
 */

/* Import CSS variables and animations */
@import url('variables.css');
@import url('animations.css');

/* Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-accent);
}

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

ul, ol {
  list-style: none;
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

/* Header */
header {
  height: var(--header-height);
  width: 100%;
  background-color: transparent;
  position: static; /* Changed from fixed to avoid conflicts */
  z-index: var(--z-index-header);
  display: flex;
  align-items: center;
}

#main-header {
    position: fixed;
    width: 100%;
    top: 20px;
    left: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background-color: transparent;
    height: auto; /* Override the header height for the fixed version */
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    background-color: rgba(17, 25, 40, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

/*
Remove these styles as they're no longer needed 
.solid-header .header-container {
  background-color: rgba(46, 48, 71, 0.7); /* Changed from solid #2e3047 to semi-transparent */
  /* backdrop-filter: blur(5px); /* Add slight blur effect even in the "solid" state */
  /*-webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
} 
*/

.glass-header .header-container {
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    background-color: rgba(17, 25, 40, 0.2); /* Changed from 0.0 to 0.2 for slight visibility */
    border: 1px solid rgba(255, 255, 255, 0.125);
}*/

.header-left {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo-text:hover {
    color: #fff;
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 
                 0 0 20px rgba(255, 255, 255, 0.2);
}

.header-right {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Add visible focus styles for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Improve navigation link focus states */
.nav-link:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Skip to main content link for keyboard users */
.skip-to-content {
  background: var(--color-accent);
  color: var(--color-dark);
  padding: 10px 20px;
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 1rem;
}

/* Adjust top wrapper to account for fixed header */
.top-wrapper {
    padding-top: 180px;
    padding-bottom: 100px;
    background: var(--color-dark);
    text-align: center;
    color: var(--color-light);
    position: relative;
}

.top-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
                             rgba(0, 173, 181, 0.1) 0%, 
                             rgba(57, 62, 70, 0.4) 100%);
  z-index: 0;
}

/* Mobile navigation toggle */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  color: #fff;
}

/* Hero section (top wrapper) */
.top-wrapper {
  padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xxl) 0;
  background-image: url("../assets/images/original/pic1.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: var(--color-light);
  text-align: center;
  position: relative;
}

.top-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.top-wrapper .container {
  position: relative;
  z-index: 2;
}

.top-wrapper h1 {
  font-size: var(--font-size-xlarge);
  letter-spacing: 5px;
  margin-bottom: var(--spacing-md);
  animation: fadeIn 1s ease-out;
}

.top-wrapper p {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-large);
  animation: fadeIn 1.2s ease-out;
}

/* Buttons */
.btn-wrapper {
  margin: var(--spacing-lg) 0;
}

.btn-wrapper p {
  margin: var(--spacing-sm) 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 4px;
  text-align: center;
  margin: 10px;
  opacity: 0.8;
  transition: all 0.3s ease;
  background-color: var(--color-primary);
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.signup {
  background-color: var(--color-accent);
  color: var(--color-dark);
}

.btn.facebook {
  background-color: var(--color-facebook);
  margin-right: var(--spacing-sm);
}

.btn.twitter {
  background-color: var(--color-twitter);
}

/* Icons */
.fa {
  margin-right: var(--spacing-xs);
}

/* Section styles */
.section {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-dark);
}

/*.section:nth-child(even) {
}*/

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-light);
  position: relative;
  font-weight: 600;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

/* Card styles */
.card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--color-accent);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-md);
}

.card-title {
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
}

/* Fix card text color for better contrast */
.card-text {
  margin-bottom: var(--spacing-md);
  color: var(--color-text); /* Changed from #666 which had poor contrast on dark backgrounds */
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-text);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-logo {
  width: 80px;
  margin: 0 auto var(--spacing-lg);
}

.footer-logo-text {
    font-size: 36px;
    margin-bottom: var(--spacing-md);
    color: #fff;
    display: inline-block;
}

.footer-text {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm) 0;
}

.footer-link {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-social .footer-link {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-social .footer-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.copyright {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-lg);
}

/* About page */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: var(--spacing-xl) 0;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-content {
  flex: 2;
  padding: 0 var(--spacing-lg);
}

/* Languages page */
.text-center {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.language-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
}

.language-item:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.language-icon {
  color: var(--color-accent);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.language-name {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Blog page */
.blog-post {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-title {
  color: var(--color-light);
  margin-bottom: var(--spacing-sm);
}

.blog-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}

.blog-date, .blog-author {
  margin-right: var(--spacing-lg);
}

.blog-content {
  margin-bottom: var(--spacing-md);
}

.read-more {
  color: var(--color-accent);
  font-weight: 600;
}

/* Then and Now Styling */
.then-now-section {
  padding: var(--spacing-xl) 0;
  margin: var(--spacing-xl) 0;
}

.then-now-container {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  align-items: stretch;
}

.then-column, .now-column {
  flex: 1;
  background-color: var(--color-card-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.then-column:hover, .now-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--color-accent);
}

/* Mission page */
.mission-statement {
  font-size: 1.5rem;
  font-weight: 300;
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  line-height: 1.6;
}

/* Media Queries */
@media (max-width: 1024px) {
  :root {
    --font-size-xlarge: 2rem;
  }
}

@media (max-width: 768px) {
  #main-header {
        top: 10px;
    }
    
    .header-container {
        padding: 8px 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-right {
        position: absolute;
        flex-direction: column;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #2e3047;
        border-radius: 0 0 20px 20px;
        padding: 20px;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        opacity: 0;
        z-index: -1;
    }
    
    .header-right.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .glass-header .header-right {
        backdrop-filter: blur(10px) saturate(180%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        background-color: rgba(17, 25, 40, 0.7); /* Add slight opacity for visibility */
    }
  
  .top-wrapper {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-xl);
  }
  
  .top-wrapper h1 {
    font-size: 1.75rem;
    letter-spacing: 3px;
  }
  
  .then-now-container {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .then-column, .now-column {
    flex: 100%;
  }
  
  .about-image, .about-content {
    flex: 100%;
  }
  
  .about-image {
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  header {
    height: auto;
  }
  
  .header-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    z-index: var(--z-index-header);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-right.active {
    display: flex;
  }
  
  .nav-link {
    line-height: normal;
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-sm);
  }
  
  .top-wrapper h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
}