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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.text-accent {
    color: #5DFF58;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #5DFF58;
    color: #000000;
}

.btn-primary:hover {
    background-color: #4EE049;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
    background-color: #FFFFFF;
    color: #000000;
}

.btn-outline {
    background-color: transparent;
    color: #5DFF58;
    border: 2px solid #5DFF58;
}

.btn-outline:hover {
    background-color: #5DFF58;
    color: #000000;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000 !important;
    padding: 15px 0;
    transition: all 0.3s ease;
    will-change: transform;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
}

.nav-logo .logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 40px;
}

.nav-link:hover {
    color: #5DFF58;
}

.nav-login {
    background-color: #5DFF58;
    color: #000000 !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
}

.nav-login:hover {
    background-color: #4EE049;
    color: #000000 !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    background: -webkit-linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('walp.png');
    background: -o-linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('walp.png');
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('walp.png');
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* Safari performance optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fallback если фото не загружено - отключен, так как используем walp.png */
/*
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    z-index: 1;
}
*/

/* ========================================
   ВАРИАНТЫ РАЗМЕЩЕНИЯ ФОТО JOHN-А
   ======================================== */

/* ВАРИАНТ 1: Фоновое изображение (ТЕКУЩИЙ)
   - Фото как фон всей hero секции
   - Более профессиональный вид
   - John справа, текст слева
*/

/* ВАРИАНТ 2: Фото в правой части (АЛЬТЕРНАТИВНЫЙ)
   - Раскомментируйте эти стили и закомментируйте фоновый стиль выше
   - Фото в правой колонке hero секции
*/

/*
.john-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

.john-photo {
    width: 300px;
    height: 400px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #5DFF58;
    box-shadow: 0 20px 40px rgba(93, 255, 88, 0.2);
    transition: transform 0.3s ease;
}

.john-photo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .john-photo {
        width: 250px;
        height: 330px;
    }
}

@media (max-width: 480px) {
    .john-photo {
        width: 200px;
        height: 260px;
    }
}
*/

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 60px 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /* Safari optimization for large screens */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-logo .main-logo {
    height: 120px;
    width: auto;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #CCCCCC;
    margin-bottom: 20px;
    max-width: 500px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-features-list li {
    color: #FFFFFF;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 0;
    position: relative;
}

.hero-features-list li strong {
    color: #5DFF58;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.hero-social-proof {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.proof-item {
    text-align: center;
    color: #CCCCCC;
}

.proof-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #5DFF58;
    line-height: 1;
    margin-bottom: 8px;
}

.proof-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* Hero Cards */
.hero-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(93, 255, 88, 0.15);
    border-color: #5DFF58;
}

.card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5DFF58, #4EE049);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    position: relative;
}

.icon-circle::before {
    content: '🎓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.training-icon::before {
    content: '📚';
}

.packages-icon::before {
    content: '📦';
}

.hero-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.hero-card p {
    color: #CCCCCC;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.hero-photo-wrapper {
    position: relative;
    max-width: 350px;
    /* Убираем border-radius, чтобы не было рамки */
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    /* Убираем overflow: hidden, чтобы не обрезать фото */
    overflow: visible;
    /* Убираем тени */
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    /* Убираем transition для box-shadow */
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
    -o-transition: -o-transform 0.3s ease;
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    /* Performance optimizations */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.hero-photo-wrapper:hover {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    transform: translateY(-10px);
    /* Убираем тени при наведении */
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.hero-photo {
    width: 100%;
    height: auto;
    display: block;
    /* Убираем border-radius, чтобы фото не было обрезано */
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    /* Performance optimizations for image rendering */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Safari-specific image optimization */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Force proper image scaling in Safari */
    object-fit: cover;
    object-position: center;
    /* Prevent image blurriness on high-DPI displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizeQuality;
    /* Убираем fallback background, так как фото PNG без фона */
    background-color: transparent;
    min-height: auto;
}

/* Fallback для случаев, когда изображение не загружается */
.hero-photo:not([src]), 
.hero-photo[src=""],
.hero-photo[src*="data:image/svg+xml"] {
    background: transparent;
    display: none; /* Скрываем, если фото не загрузилось */
}

.hero-photo-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-badge {
    background: -webkit-linear-gradient(135deg, #5DFF58, #4EE049);
    background: -o-linear-gradient(135deg, #5DFF58, #4EE049);
    background: linear-gradient(135deg, #5DFF58, #4EE049);
    color: #000000;
    padding: 12px 20px;
    border-radius: 25px;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    text-align: center;
    -webkit-box-shadow: 0 8px 20px rgba(93, 255, 88, 0.3);
    -moz-box-shadow: 0 8px 20px rgba(93, 255, 88, 0.3);
    box-shadow: 0 8px 20px rgba(93, 255, 88, 0.3);
    /* Backdrop filter with fallbacks */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(93, 255, 88, 0.95);
    background-image: -webkit-linear-gradient(135deg, rgba(93, 255, 88, 0.95), rgba(78, 224, 73, 0.95));
    background-image: linear-gradient(135deg, rgba(93, 255, 88, 0.95), rgba(78, 224, 73, 0.95));
    width: auto;
    min-width: -webkit-fit-content;
    min-width: -moz-fit-content;
    min-width: fit-content;
    display: block;
    margin: 0 auto;
}

.badge-text {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.badge-subtext {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    opacity: 0.9;
    margin-top: 2px;
}



/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #CCCCCC;
    max-width: 600px;
    margin: 0 auto;
}

/* Programs Section */
.programs {
    padding: 100px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 50px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(93, 255, 88, 0.15);
}

.program-card.featured {
    border: 2px solid #5DFF58;
    position: relative;
}

.program-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5DFF58, #4EE049);
}

.program-header {
    text-align: center;
    margin-bottom: 40px;
}

.program-icon {
    margin-bottom: 24px;
}

.program-title {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #FFFFFF;
}

.program-subtitle {
    color: #5DFF58;
    font-size: 1.125rem;
    font-weight: 600;
}

.program-content {
    color: #CCCCCC;
}

.program-description {
    font-size: 1.125rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.program-features {
    list-style: none;
    margin-bottom: 40px;
}

.program-features li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    color: #CCCCCC;
    font-size: 1rem;
}

.program-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    width: 10px;
    height: 10px;
    background-color: #5DFF58;
    border-radius: 50%;
}

.program-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Services Section (for individual program pages) */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(93, 255, 88, 0.1);
}

.service-card.featured {
    border: 2px solid #5DFF58;
    position: relative;
}

.service-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background-color: #5DFF58;
    color: #000000;
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

.service-icon {
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-description {
    color: #CCCCCC;
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-price {
    background: linear-gradient(135deg, #5DFF58, #4EE049);
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 32px;
}

.service-features li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #CCCCCC;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background-color: #5DFF58;
    border-radius: 50%;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(93, 255, 88, 0.1);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #CCCCCC;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.author-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.author-info p {
    color: #5DFF58;
    font-weight: 600;
    margin-bottom: 12px;
}

.author-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-stats span {
    font-size: 0.875rem;
    color: #CCCCCC;
    font-weight: 500;
}

/* About John Section */
.about-john {
    padding: 100px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.about-john-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.john-photo-section {
    display: flex;
    justify-content: center;
}

.john-photo-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(93, 255, 88, 0.2);
}

.john-portrait {
    width: 400px;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.john-photo-wrapper:hover .john-portrait {
    transform: scale(1.05);
}

.john-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 20px 20px;
    text-align: center;
}

.experience-badge {
    background: linear-gradient(135deg, #5DFF58, #4EE049);
    color: #000000;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 700;
}

.experience-badge .years {
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.john-content {
    color: #CCCCCC;
}

.john-intro {
    font-size: 1.125rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.john-credentials {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.credential-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.credential-icon {
    font-size: 2rem;
    margin-top: 4px;
}

.credential-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.credential-content p {
    color: #CCCCCC;
    line-height: 1.5;
}

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

.cta-note {
    font-size: 0.875rem;
    color: #999999;
    margin-top: 12px;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    color: #CCCCCC;
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.usp-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.usp-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.usp-icon {
    margin-top: 4px;
}

.icon-dot {
    width: 12px;
    height: 12px;
    background-color: #5DFF58;
    border-radius: 50%;
}

.usp-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.usp-content p {
    color: #CCCCCC;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.location-dot {
    width: 12px;
    height: 12px;
    background-color: #5DFF58;
    border-radius: 50%;
}

.visual-card p {
    color: #CCCCCC;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Form styles for Netlify forms (index.html and moving-booster.html) */
.contact-form {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FFFFFF;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #000000;
    border: 1px solid #333;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5DFF58;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.info-item p {
    color: #CCCCCC;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.footer-brand p {
    color: #CCCCCC;
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    color: #CCCCCC;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #5DFF58;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #CCCCCC;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero {
        background-attachment: scroll;
        -webkit-background-attachment: scroll;
        background-position: center;
        /* Fix for mobile browsers */
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    /* Center credentials on tablets and mobile */
    .john-credentials {
        text-align: center;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .credential-content,
    .credential-content h4,
    .credential-content p {
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-john-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .john-portrait {
        width: 300px;
        height: 375px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-logo .main-logo {
        height: 100px;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 12px 0;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1000 !important;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo .logo-img {
        height: 35px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(26, 26, 26, 0.98));
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 80px 0 40px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 20px 0;
        font-size: 1.2rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-link:hover {
        color: #5DFF58;
        background: rgba(93, 255, 88, 0.1);
        transform: translateX(10px);
    }

    .nav-login {
        margin-top: 30px;
        display: inline-block;
        background: linear-gradient(135deg, #5DFF58, #4EE049);
        color: #000000 !important;
        padding: 16px 32px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 8px 25px rgba(93, 255, 88, 0.3);
    }

    .nav-login:hover {
        background: linear-gradient(135deg, #4EE049, #3DD03D);
        color: #000000 !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(93, 255, 88, 0.4);
    }

    .nav-toggle {
        display: flex;
        z-index: 1000;
        position: relative;
    }
    
    .nav-toggle .bar {
        background: #5DFF58;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
}

    /* Enhanced Hero Section for Mobile */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero {
        background-attachment: scroll;
        -webkit-background-attachment: scroll;
        -moz-background-attachment: scroll;
        padding: 100px 0 60px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
        line-height: 1.1;
        font-weight: 900;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
        line-height: 1.6;
        text-align: center;
        max-width: none;
        padding: 0 10px;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .hero-social-proof {
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
    }
    
    .proof-item {
        min-width: 100px;
    }
    
    .proof-number {
        font-size: 1.8rem;
    }
    
    .proof-text {
        font-size: 0.8rem;
    }
    
    /* Center credentials section in mobile */
    .john-credentials {
        text-align: center;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .credential-content {
        text-align: center;
    }
    
    .credential-content h4 {
        text-align: center;
    }
    
    .credential-content p {
        text-align: center;
    }
    
    .hero-logo .main-logo {
        height: 90px;
        margin-bottom: 20px;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }
    
    .hero-card {
        padding: 30px 20px;
        max-width: 350px;
        width: 100%;
    }
    
    .hero-photo-wrapper {
        max-width: 250px;
        margin: 0 auto 20px;
    }
    
    .hero-photo-badge {
        padding: 12px 20px;
        text-align: center;
        width: auto;
        min-width: fit-content;
        display: block;
        margin: 0 auto;
        border-radius: 20px;
    }
    
    .badge-text {
        font-size: 1rem;
        text-align: center;
        display: block;
    }
    
    .badge-subtext {
        font-size: 0.85rem;
        text-align: center;
        display: block;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Enhanced Cards for Mobile */
    .service-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .program-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .programs-grid {
        gap: 25px;
        padding: 0 10px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .testimonials-grid {
        gap: 20px;
        padding: 0 10px;
    }

    .about-john-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .john-portrait {
        width: 250px;
        height: 312px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Enhanced Forms for Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 16px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 12px;
        border: 2px solid #333;
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #5DFF58;
        box-shadow: 0 0 0 3px rgba(93, 255, 88, 0.1);
        outline: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-full {
        padding: 18px 24px;
        font-size: 1.1rem;
        font-weight: 700;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .btn-full:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(93, 255, 88, 0.3);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Extra Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 90px 0 50px;
        background-attachment: scroll;
        -webkit-background-attachment: scroll;
        background-position: center;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        max-width: none;
        padding: 0 5px;
        margin-bottom: 25px;
    }

    .btn {
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 10px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 260px;
    }
    
    .hero-social-proof {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .proof-item {
        min-width: 80px;
    }
    
    .proof-number {
        font-size: 1.5rem;
    }
    
    .proof-text {
        font-size: 0.75rem;
    }
    
    /* Center credentials section in small mobile */
    .john-credentials {
        text-align: center;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .credential-content {
        text-align: center;
    }
    
    .credential-content h4 {
        text-align: center;
        font-size: 1rem;
    }
    
    .credential-content p {
        text-align: center;
        max-width: none;
        font-size: 0.9rem;
    }
    
    /* Fix text overflow in contact info cards */
    .contact-info-card {
        padding: 1.25rem 0.75rem;
    }
    
    .contact-info-card p {
        font-size: 0.85rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 15px;
    }
    
    .hero-card {
        padding: 25px 15px;
        max-width: 300px;
    }
    
    .hero-photo-badge {
        padding: 10px 16px;
        text-align: center;
        width: auto;
        min-width: fit-content;
        display: block;
        margin: 0 auto;
        border-radius: 15px;
    }
    
    .badge-text {
        font-size: 0.9rem;
    }
    
    .badge-subtext {
        font-size: 0.75rem;
    }
    
    .hero-logo .main-logo {
        height: 75px;
        margin-bottom: 15px;
    }
    
    .hero-container {
        padding: 0 10px;
        gap: 20px;
    }
    
    .hero-photo-wrapper {
        max-width: 200px;
        margin: 0 auto 15px;
    }

    /* Enhanced Mobile Cards */
    .service-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .program-card {
        padding: 25px 15px;
        margin: 0 5px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .btn-full {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .services,
    .about,
    .contact,
    .programs,
    .testimonials {
        padding: 50px 0;
    }
    
    .services-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 5px;
    }
    
    .hero-card h3 {
        font-size: 1.25rem;
    }
    
    .hero-card p {
        font-size: 0.9rem;
    }
    
    /* Navigation improvements for small screens */
    .nav-logo .logo-img {
        height: 30px;
    }
    
    .nav-link {
        padding: 18px 0;
        font-size: 1.1rem;
    }
    
    .nav-login {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Footer improvements */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-links {
        gap: 30px;
    }
}

/* Animations with browser prefixes */
@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* Browser-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Safari and Chrome specific fixes */
    .hero-photo-wrapper {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* IE/Edge fixes */
@supports (-ms-ime-align: auto) {
    .hero {
        background-attachment: scroll;
    }
    .hero-photo-wrapper {
        transform: none;
    }
    .hero-photo-wrapper:hover {
        transform: none;
    }
}

.hero-content,
.hero-visual {
    -webkit-animation: fadeInUp 0.8s ease-out;
    animation: fadeInUp 0.8s ease-out;
}

.service-card {
    -webkit-animation: fadeInUp 0.8s ease-out;
    animation: fadeInUp 0.8s ease-out;
}

.service-card:nth-child(2) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

/* Thank You Page Styles */
.thank-you {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.thank-you-subtitle {
    font-size: 1.25rem;
    color: #CCCCCC;
    margin-bottom: 50px;
    line-height: 1.6;
}

.thank-you-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.detail-item {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.detail-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #5DFF58;
}

.detail-item p {
    color: #CCCCCC;
    line-height: 1.5;
}

.thank-you-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5DFF58;
}

/* Thank You Page Responsive */
@media (max-width: 768px) {
    .thank-you-title {
        font-size: 2.5rem;
    }
    
    .thank-you-subtitle {
        font-size: 1.125rem;
    }
    
    .thank-you-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* LeadConnector Form Styling - Replaces old Netlify form */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.form-header p {
    font-size: 1.125rem;
    color: #5DFF58;
    font-weight: 500;
}

.leadconnector-form-wrapper {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.leadconnector-form-wrapper iframe {
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(93, 255, 88, 0.1);
    background: transparent !important;
}

/* Ensure the iframe takes full width and height */
.leadconnector-form-wrapper iframe {
    width: 100% !important;
    height: 534px !important;
    min-height: 534px !important;
}

/* Custom styling for LeadConnector form elements - using more specific selectors */
/* Note: Removed empty rule for .leadconnector-form-wrapper iframe */

/* Note: LeadConnector forms are embedded via iframe, so direct CSS styling 
   of form elements inside the iframe is limited due to cross-origin restrictions.
   The form will use its own styling from the LeadConnector service. */

/* Responsive adjustments for LeadConnector form */
@media (max-width: 768px) {
    .leadconnector-form-wrapper {
        padding: 20px;
        min-height: 500px;
    }
    
    .leadconnector-form-wrapper iframe {
        height: 500px !important;
        min-height: 500px !important;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .leadconnector-form-wrapper {
        padding: 15px;
        min-height: 450px;
    }
    
    .leadconnector-form-wrapper iframe {
        height: 450px !important;
        min-height: 450px !important;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
    }
    
    .hero-photo-wrapper {
        max-width: 250px;
        margin-top: 15px;
    }
    

    
    .hero-photo-badge {
        padding: 8px 12px;
        text-align: center;
        width: auto;
        min-width: fit-content;
        display: block;
        margin: 0 auto;
    }
    
    .badge-text {
        font-size: 0.875rem;
        text-align: center;
        display: block;
    }
    
    .badge-subtext {
        font-size: 0.75rem;
        text-align: center;
        display: block;
    }
}

/* Checkbox Styles - FINAL VERSION 3 - SQUARE CHECKBOX */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}

.checkbox-label input[type="checkbox"] {
    display: none !important;
}

.checkmark {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #5DFF58;
    border-radius: 0;
    background-color: transparent;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: inline-block;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #5DFF58;
    border: 2px solid #5DFF58;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label .checkbox-main-text {
    display: inline;
    font-weight: 600;
    color: #fff;
}

.checkbox-details {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

.checkbox-details a {
    color: #5DFF58;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.checkbox-details a:hover {
    color: #4CDD4C;
    text-decoration: underline;
}

/* Contact Info Grid Styles */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(93, 255, 88, 0.2);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(93, 255, 88, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.contact-info-card h3 {
    color: #5DFF58;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.contact-info-card p {
    color: #ccc;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

.contact-info-card a {
    color: #5DFF58;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #4CDD4C;
    text-decoration: underline;
}

.contact-cta {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-cta p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-link {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(93, 255, 88, 0.2);
}

.privacy-link a {
    color: #5DFF58;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-link a:hover {
    color: #4CDD4C;
    text-decoration: underline;
}

/* Form header styles */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    color: #5DFF58;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #ccc;
    font-size: 1rem;
}

/* Certified Agents Page Styles */
.agents {
    padding: 100px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    min-height: 100vh;
}

.agents .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.agents .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.agents .section-subtitle {
    font-size: 1.1rem;
    color: #CCCCCC;
    max-width: 600px;
    margin: 0 auto;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fallback for older browsers */
.agents-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.agents-grid > * {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 350px;
    flex: 0 1 350px;
    max-width: 400px;
}

.agent-card {
    background: #1a1a1a !important;
    border: 2px solid #333 !important;
    border-radius: 15px !important;
    padding: 30px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.agent-card:hover {
    transform: translateY(-5px);
    border-color: #5DFF58;
    box-shadow: 0 15px 40px rgba(93, 255, 88, 0.2);
}

.agent-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 10px;
}

.agent-info {
    text-align: center;
    margin-bottom: 25px;
}

.agent-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.agent-title {
    color: #5DFF58;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.agent-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.stat {
    color: #CCCCCC;
    font-size: 0.85rem;
    font-weight: 500;
}

.agent-description {
    color: #CCCCCC;
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.agent-actions {
    display: flex;
    justify-content: center;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    margin: 5% auto;
    padding: 0;
    border: 1px solid #333;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 2001;
}

.close:hover,
.close:focus {
    color: #5DFF58;
}

/* Agent Details Modal */
.agent-details {
    padding: 40px;
}

.agent-header {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-emoji-large {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
}

.agent-title-large {
    color: #5DFF58;
    font-size: 1.25rem;
    font-weight: 600;
}

.agent-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(93, 255, 88, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(93, 255, 88, 0.3);
}

.stat-label {
    display: block;
    color: #CCCCCC;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    color: #5DFF58;
    font-size: 1.25rem;
    font-weight: 700;
}

.agent-description-full,
.agent-skills,
.agent-achievements,
.agent-compensation {
    margin-bottom: 30px;
}

.agent-description-full h3,
.agent-skills h3,
.agent-achievements h3,
.agent-compensation h3 {
    color: #5DFF58;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.agent-skills ul,
.agent-achievements ul {
    list-style: none;
    padding: 0;
}

.agent-skills li,
.agent-achievements li {
    color: #CCCCCC;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.agent-skills li::before,
.agent-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #5DFF58;
    font-weight: bold;
}

.agent-actions {
    text-align: center;
    margin-top: 40px;
}

/* Hire Modal */
.hire-modal-content {
    padding: 40px;
    text-align: center;
}

.hire-modal-content h2 {
    color: #5DFF58;
    font-size: 2rem;
    margin-bottom: 20px;
}

.hire-modal-content p {
    color: #CCCCCC;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(93, 255, 88, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(93, 255, 88, 0.3);
}

.contact-item strong {
    color: #FFFFFF;
}

.contact-item a {
    color: #5DFF58;
    text-decoration: none;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    flex: 1;
    text-align: right;
}

.contact-item a:hover {
    color: #4CDD4C;
    text-decoration: underline;
}

.hire-note {
    background: rgba(93, 255, 88, 0.1);
    border: 1px solid rgba(93, 255, 88, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Certified Icon */
.certified-icon::before {
    content: '🏆';
}

/* Responsive Design for Agents */
@media (max-width: 768px) {
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .agent-card {
        padding: 30px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .agent-details,
    .hire-modal-content {
        padding: 30px 20px;
    }
    
    .agent-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .modal-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .agent-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-details {
        max-width: 100%;
    }
    
    /* Fix contact item overflow on mobile */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }
    
    .contact-item a {
        text-align: left;
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .hero {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
    
    .hero-photo-wrapper {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000px;
    }
    
    .hero-photo {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
}

/* Large screens (iMac 27", 5K displays and above) */
@media screen and (min-width: 1400px) {
    .hero-container {
        max-width: 1400px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        min-height: 80vh;
    }
    
    .hero-visual {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        order: 1;
        text-align: left;
    }
    
    .hero-photo-wrapper {
        max-width: 450px;
        width: 100%;
        /* Safari-specific fixes for large screens */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
        /* Force hardware acceleration */
        will-change: transform;
    }
    
    .hero-photo {
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: cover;
        display: block;
        /* Safari image rendering optimization */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 40px;
    }
    
    .hero-cta {
        gap: 24px;
        margin-bottom: 50px;
    }
    
    .hero-cta .btn {
        padding: 18px 36px;
        font-size: 18px;
    }
}

/* Extra large screens (5K iMac and above) */
@media screen and (min-width: 1920px) {
    .hero-container {
        max-width: 1600px;
        gap: 100px;
    }
    
    .hero-photo-wrapper {
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
}

/* Safari-specific fixes for all screen sizes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hero-container {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .hero-photo-wrapper {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        /* Force repaint on Safari */
        will-change: transform;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
    
    .hero-photo {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Safari image rendering fixes */
        -webkit-filter: blur(0);
        filter: blur(0);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .hero-visual {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
        -webkit-background-attachment: scroll;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-toggle {
        min-height: 48px;
        min-width: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved form interactions */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group input[type="checkbox"] {
        min-height: 20px;
        min-width: 20px;
    }
    
    /* Better scrolling on mobile */
    .hero,
    .programs,
    .services,
    .testimonials,
    .contact {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Improved text selection */
    .hero-title,
    .section-title,
    .hero-subtitle,
    .section-subtitle {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Better focus states for accessibility */
    .btn:focus,
    .nav-link:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid #5DFF58;
        outline-offset: 2px;
    }
    
    /* Smooth transitions for better performance */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Optimize animations for mobile */
    .hero-card,
    .service-card,
    .program-card,
    .testimonial-card {
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 60px 0 40px;
    }
    
    .hero-container {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-cta {
        flex-direction: row;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .hero-cta .btn {
        width: auto;
        max-width: 200px;
    }
    
    .hero-social-proof {
        gap: 20px;
    }
}

/* High DPI mobile displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('walp.png');
        background-size: cover;
        background-position: center;
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('walp.png');
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-card,
    .service-card,
    .program-card,
    .testimonial-card,
    .btn,
    .nav-link {
        transition: none;
        animation: none;
    }
    
    .hero-card:hover,
    .service-card:hover,
    .program-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}