/* Global Resets & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.8rem; color: #2c3e50; }
h2 { font-size: 2.2rem; color: #34495e; }
h3 { font-size: 1.6rem; color: #34495e; }
h4 { font-size: 1.2rem; color: #34495e; }

p {
    margin-bottom: 1em;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style-position: inside;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

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

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e67e22; /* Accent color */
    margin: 10px auto 0;
}


/* Header & Navigation */
header {
    background-color: #2c3e50; /* Dark blue */
    color: #ecf0f1; /* Light grey/white */
    padding: 1em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ecf0f1;
}
.logo:hover {
    text-decoration: none;
    color: #f1c40f; /* Gold accent for logo hover */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
    margin-bottom: 0;
}

.nav-links a {
    color: #ecf0f1;
    font-weight: 400;
    padding: 0.5em 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e67e22; /* Accent color */
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
    color: #f1c40f; /* Gold accent for active/hover link */
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5em;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ecf0f1;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }


/* Hero Section */
.hero-section {
    background: #34495e url('../assets/images/hero-bg-placeholder.jpg') no-repeat center center/cover; /* Darker blue, replace placeholder */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section .hero-content {
    background-color: rgba(44, 62, 80, 0.7); /* Semi-transparent overlay */
    padding: 30px;
    border-radius: 8px;
}


.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: #fff;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1em;
    color: #ecf0f1;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #e67e22; /* Orange accent */
    color: #fff;
}
.btn-primary:hover {
    background-color: #d35400; /* Darker orange */
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #bdc3c7; /* Light grey */
    color: #2c3e50; /* Dark blue text */
}
.btn-secondary:hover {
    background-color: #95a5a6; /* Darker grey */
    color: #2c3e50;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Why Me Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.feature-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

/* Фикс для центрирования иконок внутри кружков */
.feature-icon {
  /* размеры кружка */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e67e22;
  color: #fff;

  /* центрируем знак */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Смещаем иконки вниз внутри кружка */
  padding-top: 14px; /* Добавляем отступ сверху */
  padding-left: 1px;
  box-sizing: border-box; /* Чтобы padding не увеличивал размер */
  
  /* сам символ */
  font-size: 32px;
  margin: 0 auto 18px;
}

/* Featured Success Section */
.featured-success-section .success-story-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.featured-success-section .success-story-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* Page Title Section */
.page-title-section h1 {
    text-align: center;
}

/* About Page */
.grid-about {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.profile-image {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.about-text ul li {
    margin-left: 20px;
}

/* Impact Page */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.success-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #3498db; /* Blue accent */
}
.success-card h3 {
    color: #3498db;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.toolkit-item {
    padding: 20px;
}
.toolkit-item h4 {
    color: #e67e22; /* Orange accent */
}

/* Credentials Page */
.credential-category {
    margin-bottom: 40px;
}
.credential-category h2 {
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.credential-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.wes-highlight strong {
    color: #27ae60; /* Green */
}
.praxis-highlight-box {
    border: 2px solid #e67e22;
    background-color: #fdf2e9; /* Light orange */
    text-align: center;
}
.praxis-score {
    font-size: 2rem;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 0.25em !important;
}
.languages-list li, .skills-list li {
    margin-left: 0;
    list-style-type: none; /* Or use a checkmark icon */
}
.skills-list strong, .languages-list strong {
    color: #2c3e50;
}

/* H1B Page */
.h1b-info-section .info-block {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}
.h1b-info-section .info-block h2 {
    color: #3498db; /* Blue */
}
.h1b-info-section .info-block ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Contact Page */
.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}
.contact-details p {
    margin-bottom: 0.8em;
}
.contact-form-container h3, .contact-details h3 {
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: #2c3e50; /* Dark blue */
    color: #bdc3c7; /* Light grey */
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
footer p {
    margin-bottom: 0.5em;
    font-size: 0.9rem;
    color: #bdc3c7;
}
footer a {
    color: #ecf0f1; /* Lighter grey for links */
}
footer a:hover {
    color: #f1c40f; /* Gold accent */
}
.cv-generated-date {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 10px;
}


/* Responsive Design */
@media (max-width:940px) {
    h1 { font-size: 2.2rem; }
    .hero-section h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .nav-toggle {
        display: block;
        z-index: 1001; /* Above nav links */
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #2c3e50;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links li {
        margin-left: 0;
        margin-bottom: 20px;
    }
    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hamburger animation when open */
    .nav-toggle.open .hamburger {
        transform: rotate(45deg);
    }
    .nav-toggle.open .hamburger::before {
        top: 0;
        transform: rotate(90deg);
    }
    .nav-toggle.open .hamburger::after {
        bottom: 0;
        transform: rotate(90deg);
        opacity: 0; /* Or transform it like the before pseudo element */
    }


    .grid-about, .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1; /* Image on top on mobile */
        margin-bottom: 30px;
    }
    .contact-details {
        margin-bottom: 30px;
    }
}

/* -------- desktop ≥ 1200 -------- */
h1               { font-size: 2.8rem; }
.hero-section h1 { font-size: 3rem;   }

/* -------- tablet landscape 900-1199 -------- */
@media (max-width: 1199px){
  h1               { font-size: 2.4rem; }
  .hero-section h1 { font-size: 2.6rem; }
}

/* -------- tablet portrait 600-899 -------- */
@media (max-width: 899px){
  h1               { font-size: 2.0rem; }
  .hero-section h1 { font-size: 2.2rem; }
}

/* -------- phone ≤ 599 -------- */
@media (max-width: 599px){
  h1               { font-size: 1.7rem; }
  .hero-section h1 { font-size: 1.9rem; }
  h2               { font-size: 1.2rem; }
  p                { font-size: 0.95rem; }
  .hero-content    { padding: 18px;  }      /* поменьше рамка на очень узких экранах */
  .btn             { padding: 10px 16px; }  /* ужимаем кнопки */
}

/* ==== 0. Глобальный анти-скролл ========================================== */
html,body{overflow-x:hidden;}

/* ==== 1. Navbar tweaks (≤ 599 px) ======================================= */
@media(max-width:599px){
  .logo{font-size:1.4rem;line-height:1;max-width:60vw;white-space:nowrap;}
  header nav{padding-inline:16px;}
  .hamburger,.hamburger::before,.hamburger::after{height:4px;}
  .hamburger{width:28px;}
}

/* ==== 2. Fluid typography =============================================== */
h1{font-size:clamp(1.6rem,1.1rem+2.5vw,2.8rem);}
h2{font-size:clamp(1.2rem,0.9rem+1.5vw,2.2rem);}
p {font-size:clamp(0.95rem,0.8rem+0.6vw,1.1rem);}

.hero-section h1{
  font-size:clamp(1.8rem,1.3rem+3.2vw,3rem);
  line-height:1.25;
  max-width:90vw;
}

.hero-content{
  width:100%;
  max-width:540px;
  padding:clamp(18px,5vw,30px);
  border-radius:12px;
}

/* ==== 3. CTA buttons ===================================================== */
.hero-cta{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:18px;
}
@media(max-width:599px){
  .btn{padding:10px 16px;font-size:0.95rem;}
}

/* ==== 4. Features grid spacing ========================================== */
@media(max-width:599px){
  .features-grid{gap:18px;}
  .feature-item{padding:18px;}
}

/* ==== 5. Success grid fix =============================================== */
@media(max-width:599px){
  .success-grid{grid-template-columns:1fr;}
}

/* ==== A. Общее   =============================================== */
html,body{overflow-x:hidden;}      /* жёстко режем горизонтальный скролл */

/* логотип + бургер никогда не давим друг друга */
.logo{max-width:60vw;white-space:nowrap;}
.nav-toggle{flex-shrink:0;}

/* ==== B. Fluid-type (финальная версия) ========================= */
h1{font-size:clamp(1.6rem,1.0rem+2.0vw,2.8rem);}
h2{font-size:clamp(1.25rem,0.9rem+1.2vw,2.2rem);}
p {font-size:clamp(0.98rem,0.85rem+0.5vw,1.1rem);}

.hero-section h1{
  font-size:clamp(1.85rem,1.1rem+3.2vw,3rem);
  line-height:1.25;
  max-width:90vw;                 /* гарант. не выйдет за экран */
}

/* ==== C. Hero-overlay ========================================= */
.hero-content{
  width:92vw;                     /* вместо 100 % */
  max-width:540px;
  padding:clamp(18px,5vw,28px);
  margin-inline:auto;             /* по центру */
  border-radius:12px;
}

/* ==== D. CTA-buttons в две строки ============================== */
.hero-cta{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;
}
@media(max-width:599px){
  .btn{padding:10px 16px;font-size:0.95rem;}
}

/* ==== E. Grids ================================================= */
@media(max-width:599px){
  .features-grid{gap:18px;}
  .feature-item{padding:18px;}

  .success-grid{grid-template-columns:1fr;} /* карточки по одной */
}

/* ==== F. Navbar breakpoint fix ================================ */
@media(max-width:599px){
  header nav{padding-inline:16px;}
  .logo{font-size:1.45rem;}       /* чуть меньше, помещается слева */
  .hamburger,.hamburger::before,.hamburger::after{height:3px;}
}

/* ==== G. Контентный «хвост» (footer & пр.) ===================== */
/* доп. микрофиксов здесь при необходимости */

/* === Hero overlay – адаптивная ширина =================================== */

/* 1. Базово (мобильные) ─ остаётся узкий, чтоб не вылезал */
.hero-content{
    width:92vw;                /* почти во всю ширину телефона */
    max-width:540px;           /* iPad-портрет / small-desktop */
    /*padding:clamp(18px,5vw,28px);*/
    margin-inline:auto;
    border-radius:12px;
}

/* 2. Широкие экраны ≥ 1024 px ─ даём «раскрыться» */
@media (min-width:1024px){
    .hero-content{
        width:90vw;            /* 75 % ширины вьюпорта */
        max-width:900px;       /* но не больше 900 px, чтобы текст не растягивался */
    }
}

/* 3. Очень большие экраны ≥ 1600 px ─ чуть шире, но всё ещё центр */
@media (min-width:1600px){
    .hero-content{
        width:85vw;
        max-width:1100px;
    }
}

/* === XS-экраны ≤ 359 px ============================================== */
@media (max-width: 640px){

  /* заголовки */
  .hero-section h1{ font-size: 1.5rem; }   /* было 1.85 rem */
  h1{ font-size: 1.4rem; }                /* вторые страницы */

  /* подзаголовок + обычный текст */
  h2{ font-size: 1rem; }
  p { font-size: 0.8rem; line-height: 1.; }

  /* кнопки — чуть меньше, чтобы две влазили в ряд */
  .btn{ padding: 8px 14px; font-size: 0.8rem; }

  /* overlay — ещё компактней, чтобы края не «липли» к бордюру */
  .hero-content{
      width: 90vw;
      
  }
}

/* === XS-экраны ≤ 359 px ========================================== */
@media (max-width:359px){
    .hero-section h1{font-size:1.5rem!important;}
    h1{font-size:1.4rem!important;}

    h2{font-size:1rem!important;}
    p {font-size:0.8rem!important;line-height:1.2;}

    .btn{padding:8px 14px;font-size:0.8rem;}

    .hero-content{
        width:90vw;
        padding:14px;
    }

    .logo{font-size:1.2rem;}
}

/* типографика */
.hero-headline{font-size:clamp(2rem,1.1rem+2.6vw,3rem);line-height:1.15;margin-bottom:.4em}
.h1-highlight{color:#f1c40f}
.hero-sub    {font-size:clamp(1.25rem,0.9rem+1.4vw,2rem);font-weight:400;margin-bottom:.8em}
.hero-tagline{font-size:1rem;font-weight:400;margin-bottom:1.2em}

/* CTA */
.hero-cta{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;max-width:500px;margin:0 auto}

/* контейнер */
.hero-content{width:90vw;max-width:900px;padding:clamp(20px,5vw,32px);margin:auto;border-radius:12px;background:rgba(44,62,80,.88)}