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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Variables */
:root {
    --primary-color: #f1c40f;
    --secondary-color: #e67e22;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --gradient-primary: linear-gradient(135deg, #f1c40f, #e67e22);
    --gradient-dark: linear-gradient(135deg, #2c3e50, #34495e);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(44, 62, 80, 0.98);
    box-shadow: var(--shadow-medium);
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    margin: 0;
}

.nav-logo span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login,
.btn-signup,
.btn-consultation {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

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

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-consultation {
    background: var(--accent-color);
    color: #fff;
}

.btn-consultation:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    z-index: -1;
}

.hero-content {
    width: 100%;
    z-index: 1;
}

.hero-text {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #fff;
    margin-bottom: 1rem;
    line-height: 0.9;
}

.hero-title .accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #bbb;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', cursive;
}

.stat-label {
    font-size: 1rem;
    color: #bbb;
    font-weight: 400;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark-color);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

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

.btn-secondary:hover {
    background: #fff;
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-points {
    margin-bottom: 3rem;
}

.point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.point:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.point i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.point h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.point p {
    color: #666;
    line-height: 1.5;
}

.solution {
    background: var(--gradient-dark);
    color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.solution h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.solution p {
    line-height: 1.6;
    color: #ddd;
}

.framework-preview {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.framework-preview h4 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.framework-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    background: var(--gradient-primary);
    color: var(--dark-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-light);
}

/* Packages Section */
.packages-section {
    padding: 6rem 0;
    background: #fff;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.discount-badge {
    background: var(--accent-color);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.package-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.package-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.package-card.popular:hover {
    transform: scale(1.08) translateY(-10px);
}

.package-card.premium {
    border-color: var(--accent-color);
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 0.5rem 2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.package-header {
    padding: 2rem;
    text-align: center;
    background: var(--light-color);
}

.package-card.popular .package-header {
    background: linear-gradient(135deg, var(--primary-color), #f39c12);
    color: var(--dark-color);
}

.package-card.premium .package-header {
    background: var(--gradient-dark);
    color: #fff;
}

.package-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', cursive;
}

.package-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.price-container {
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Bebas Neue', cursive;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.duration {
    font-size: 0.9rem;
    opacity: 0.8;
}

.package-features {
    padding: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.feature i {
    font-size: 1.2rem;
}

.feature.unavailable {
    opacity: 0.4;
}

.feature.unavailable i {
    color: #ccc;
}

.feature.premium-bonus i {
    color: var(--primary-color);
}

.package-btn {
    width: 100%;
    padding: 1rem;
    margin: 0 2rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gradient-primary);
    color: var(--dark-color);
}

.package-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.premium-btn {
    background: var(--gradient-dark) !important;
    color: #fff !important;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.stars i {
    color: var(--primary-color);
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-dark);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a,
.footer-section ul li button {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.footer-section ul li a:hover,
.footer-section ul li button:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
}

/* 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-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    background: var(--gradient-primary);
    color: var(--dark-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
}

.close {
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

/* Form Styles */
.signup-form,
.login-form,
.consultation-form {
    padding: 2rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    width: auto;
}

.checkmark {
    display: inline-block;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Consultation Modal Specific */
.consultation-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
}

.consultation-info {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.consultation-info h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.consultation-info ul {
    list-style: none;
}

.consultation-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.consultation-info li i {
    color: var(--success-color);
}

/* Community Modal - Continuation */
.access-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.access-card ul li::before {
    content: "•";
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.btn-premium {
    background: var(--gradient-primary);
    color: var(--dark-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Video Modal */
.video-modal .modal-content {
    max-width: 800px;
}

.video-container {
    padding: 2rem;
    text-align: center;
}

.video-placeholder {
    background: var(--light-color);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    color: #666;
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.video-placeholder p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-scroll,
    .modal,
    .btn-primary,
    .btn-secondary,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-title {
        font-size: 24pt;
    }
    
    .section-title {
        font-size: 18pt;
    }
}

/* ========================================
   MOBILE OPTIMIZATION - ENHANCED
   ======================================== */

/* Improved Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-logo h2 {
        font-size: 1.4rem;
    }

    /* Fix nav menu mobile layout */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Fix navigation buttons */
    .nav-auth {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(44, 62, 80, 0.98);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        display: none;
    }

    .nav-menu.active ~ .nav-auth {
        display: flex;
    }

    .btn-login,
    .btn-signup,
    .btn-consultation {
        width: 100%;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        justify-content: center;
    }

    /* Fix hero section for mobile */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .hero-text {
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.8rem !important;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }

    .hero-title br {
        display: block;
    }

    .hero-title .accent {
        display: block;
        margin-top: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem !important;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    /* Fix hero buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
    }

    /* Fix hero stats */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        padding: 2rem 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* About section mobile fixes */
    .about-section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2.2rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .point {
        padding: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .point i {
        font-size: 1.8rem;
    }

    /* Packages section mobile fixes */
    .packages-section {
        padding: 4rem 0;
    }

    .pricing-toggle {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .package-card {
        margin: 0;
    }

    .package-card.popular {
        transform: none !important;
        border-width: 3px;
    }

    .package-card.popular:hover {
        transform: translateY(-5px) !important;
    }

    .popular-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1.5rem;
    }

    .package-header {
        padding: 1.5rem;
    }

    .package-header h3 {
        font-size: 1.6rem;
    }

    .price {
        font-size: 2.2rem;
    }

    .package-features {
        padding: 1.5rem;
    }

    .package-btn {
        margin: 0 1.5rem 1.5rem;
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* Testimonials mobile fixes */
    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    /* CTA section mobile fixes */
    .cta-section {
        padding: 4rem 0;
    }

    .cta-content {
        padding: 0 1rem;
    }

    .cta-content h2 {
        font-size: 2.2rem !important;
    }

    .cta-content p {
        font-size: 1.05rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }

    /* Modal mobile fixes */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 1.2rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .signup-form,
    .login-form,
    .consultation-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .consultation-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    /* Footer mobile fixes */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        padding: 0 1rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        padding: 1.5rem 1rem 0;
        font-size: 0.9rem;
    }

    /* Ensure hamburger menu visibility */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .container {
        padding: 0 15px;
    }

    /* Fix any elements that might cause horizontal scroll */
    * {
        max-width: 100%;
    }

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

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .section-title {
        font-size: 1.9rem !important;
    }

    .package-header h3 {
        font-size: 1.4rem;
    }

    .price {
        font-size: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
    }

    .modal-content {
        width: 98%;
        margin: 2% auto;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 2rem;
        padding: 1.5rem 0;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}