/* <FILE>proto1/style.css</FILE> */

/* ===== UNIFIED BREAKPOINT STRATEGY ===== */
/* 
   ВАЖНО: Мы используем те же breakpoints, что и Tailwind CSS для избежания конфликтов
   Tailwind: sm(640px), md(768px), lg(1024px), xl(1280px), 2xl(1536px)
   Наши CSS должны соответствовать этим же значениям
*/

/* CSS Variables for better maintainability */
:root {
    --primary-gradient: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    --dark-gradient: linear-gradient(135deg, #000000 0%, #1f2937 100%);
    --light-gradient: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    --yellow-gradient: linear-gradient(135deg, #FEF3C7 0%, #FBBF24 100%);
    --green-gradient: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
    
    --text-primary: #000000;
    --text-secondary: #6B7280;
    --text-accent: #F59E0B;
    --text-white: #ffffff;
    
    --shadow-sm: 0 5px 15px -5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body { 
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: 100%;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: #000;
    color: white;
}

.video-container {
    position: relative;
    width: 100%;
    height: 50vh;
}

@media (min-width: 768px) {
    .video-container {
        height: 100vh;
    }
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Tab Styles */
.tab-button {
    position: relative;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tab-button:hover {
    color: rgba(255, 255, 255, 0.9);
}

.tab-button.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.tabs-container {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Common Section Styles */
.gradient-text {
    background: linear-gradient(135deg, #000000 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-decoration {
    position: relative;
    display: inline-block;
}

.title-decoration::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.hero-bg {
    background: var(--light-gradient);
    position: relative;
    overflow: hidden;
}

.hero-bg-yellow {
    background: var(--yellow-gradient);
    position: relative;
    overflow: hidden;
}

/* Animation Classes */
.content-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    width: 420px;
    height: 420px;
    margin: 0 auto;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
}

/* Cards */
.benefit-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

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

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 1.5rem;
    display: block;
    text-shadow: 2px 2px 8px rgba(75, 85, 99, 0.5);
}

.special-benefit {
    background: var(--green-gradient);
    color: white;
}

.special-benefit h3,
.special-benefit p {
    color: #ffffff;
}

/* Brand Cards */
.brand-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

/* Accordion Styles */
.accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.accordion-header:hover {
    transform: translateY(-1px);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.accordion-content.active {
    max-height: 1000px;
}

.accordion-inner {
    padding: 1.5rem;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    transition: color 0.3s ease;
}

.accordion-icon {
    transition: var(--transition);
    color: var(--text-accent);
    font-size: 1.2rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.specs-table th,
.specs-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.specs-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.specs-table tr:hover {
    background: #f9fafb;
}

/* Contact Section */
.support-bg {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.support-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-button {
    background: var(--primary-gradient);
    color: #000000;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(251, 191, 36, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

/* Utility Classes */
.yellow-accent { color: var(--text-accent); }
.gray-text { color: var(--text-secondary); }
.black-text { color: var(--text-primary); }
.white-text { color: var(--text-white); }

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

/* Contact specific overrides */
#contacts .feature-item {
    padding: 0;
    background: none;
    border-radius: 0;
}

#contacts .feature-item:hover {
    box-shadow: none;
}

#contacts .gray-text {
    color: #D1D5DB;
}

/* Performance optimizations for animations */
.content-fade-in,
.benefit-card,
.brand-card {
    will-change: transform, opacity;
}

/* Responsive Design - ALIGNED WITH TAILWIND BREAKPOINTS */
@media (max-width: 1023px) { /* lg breakpoint - 1px */
    .image-container {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }
}

@media (max-width: 767px) { /* md breakpoint -1px */
    .tab-button {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .benefit-card,
    .brand-card {
        padding: 1.5rem;
    }
    
    .accordion-header {
        padding: 0.75rem;
    }
    
    .accordion-inner {
        padding: 1rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    .nav-container,
    .cta-button,
    .question-mark {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        min-height: auto;
        page-break-inside: avoid;
    }
}

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

/* Focus styles for accessibility */
.tab-button:focus,
.cta-button:focus,
.accordion-header:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Navigation Styles */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-container.hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.nav-container.sliding-down {
    animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.nav-container.sliding-up {
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.nav-container.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Logo/Brand styling - ALIGNED WITH TAILWIND BREAKPOINTS */
.nav-logo {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: var(--transition);
    /* Default mobile size */
    font-size: 0.875rem !important; /* 14px - очень компактный для мобильных */
}

/* Small screens - Tailwind sm: 640px */
@media (min-width: 640px) {
    .nav-logo {
        font-size: 1rem !important; /* 16px */
    }
}

/* Medium screens - Tailwind md: 768px */
@media (min-width: 768px) {
    .nav-logo {
        font-size: 1.125rem !important; /* 18px */
    }
}

/* Large screens - Tailwind lg: 1024px */
@media (min-width: 1024px) {
    .nav-logo {
        font-size: 1.5rem !important; /* 24px */
    }
}

/* Force ultra-small mobile styles */
@media (max-width: 479px) {
    .nav-logo {
        font-size: 0.8rem !important; /* 12.8px - еще более компактный */
    }
}

.nav-logo:hover {
    transform: scale(1.02);
    color: #FBBF24;
}

/* Navigation links */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    position: relative;
}

.nav-link:hover {
    color: #FBBF24;
}

.nav-link.active {
    color: #FBBF24;
}

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

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

/* Mobile contacts link */
.mobile-contacts-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.mobile-contacts-link:hover {
    color: #FBBF24;
}

.mobile-contacts-link.active {
    color: #FBBF24;
}

.mobile-contacts-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.mobile-contacts-link:hover::after,
.mobile-contacts-link.active::after {
    width: 100%;
}

/* Mobile menu button */
.mobile-menu-button {
    color: white;
    background: transparent;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.25rem;
    padding: 0.5rem;
    transition: var(--transition);
    font-size: 1.2rem;
}

.mobile-menu-button:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
}

.menu-icon {
    transition: var(--transition);
    font-size: 1.2rem;
}

/* Mobile navigation */
.mobile-nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 0;
    transition: var(--transition);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #FBBF24;
    padding-left: 1rem;
}

.mobile-nav-link.active {
    color: #FBBF24;
    padding-left: 1rem;
}

.mobile-menu {
    transition: var(--transition);
    transform: translateY(-10px);
    opacity: 0;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Body padding for fixed nav */
body {
    padding-top: 64px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only.focus:not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Contact Section Styles */
.support-bg {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.support-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.title-decoration-white {
    position: relative;
    display: inline-block;
}

.title-decoration-white::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.check-icon {
    color: #10B981;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.container-inner {
    position: relative;
    z-index: 1;
}

.question-mark {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FBBF24;
    opacity: 0.3;
}

.contact-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 0.5rem;
}

.contact-icon {
    color: #FBBF24;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.guarantee-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.guarantee-icon {
    color: #10B981;
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.support-text {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Integration Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: left;
    position: relative;
    padding-left: 2rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.method-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e5e7eb;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(251, 191, 36, 0.3);
}

.dosage-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid #6B7280;
    height: 100%;
}

.dosage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: #FBBF24;
}

.step-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1rem;
    border: 1px solid #f3f4f6;
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(251, 191, 36, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.benefit-tag {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    transition: var(--transition);
}

.benefit-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

.example-item {
    background: #F9FAFB;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f3f4f6;
    transition: var(--transition);
}

.example-item:hover {
    background: #f3f4f6;
    border-color: rgba(251, 191, 36, 0.3);
}

.example-type {
    font-weight: 500;
    color: #374151;
}

.example-dose {
    font-weight: 600;
    color: #6B7280;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Process Section Styles */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-emoji {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-text {
    color: #374151;
    line-height: 1.6;
}

/* Technology Section Styles */
.feature-card {
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Mobile optimizations for integration - ALIGNED WITH TAILWIND */
@media (max-width: 767px) { /* md breakpoint -1px */
    .section-title {
        font-size: 1.5rem;
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-title::before {
        width: 3px;
        height: 30px;
    }
    
    .method-card,
    .dosage-card,
    .step-card {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .benefit-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .example-item {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .example-dose {
        font-size: 0.875rem;
    }
}

/* Additional missing styles */

/* Brand Section Styles */
.brand-title {
    color: #1F2937;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    color: var(--text-accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.intro-text {
    text-align: center;
    margin-bottom: 3rem;
    animation-delay: 0.2s;
}

.cards-container {
    animation-delay: 0.4s;
}

/* Recommendation Styles */
.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid #10B981;
    transition: var(--transition);
}

.recommendation-item:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}

.recommendation-check {
    color: #10B981;
    font-weight: bold;
    min-width: 1.5rem;
    font-size: 1.1rem;
}

/* Contact Form Styles */
.hero-gradient {
    background: linear-gradient(135deg, #000000 0%, #1f2937 50%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #FBBF24;
    opacity: 0.4;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.guarantee-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 2rem;
    padding: 1rem 2rem;
    color: #10B981;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 2rem;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
.fade-in-delay-4 { animation-delay: 0.8s; }
.fade-in-delay-5 { animation-delay: 1.0s; }
.fade-in-delay-6 { animation-delay: 1.2s; }

/* Support Section Styles */
.support-section {
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
}

.support-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.feature-check {
    color: #10B981;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-5px);
}

.contact-card.bg-white {
    background: white;
    border: 1px solid #e2e8f0;
    backdrop-filter: none;
}

.contact-card.bg-white:hover {
    background: white;
    border-color: #FBBF24;
}

/* Black accent color */
.black-accent {
    color: var(--text-primary);
    font-weight: 700;
}

/* Accordion container */
.accordion-container {
    margin-top: 1.5rem;
}

/* Feature cards in process section */
.feature-card.bg-white {
    background: white;
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.feature-card.bg-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(251, 191, 36, 0.4);
}

/* Additional utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.shadow-lg { box-shadow: var(--shadow-lg); }

.border { border-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-400 { border-color: #9ca3af; }
.border-yellow-400 { border-color: #fbbf24; }

.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Grid responsive classes for Tailwind compatibility - EXACT ALIGNMENT */
@media (min-width: 768px) { /* Tailwind md: 768px */
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\\:text-left { text-align: left; }
    .md\\:text-2xl { font-size: 1.5rem; }
    .md\\:block { display: block; }
    .md\\:hidden { display: none; }
    .md\\:flex-row { flex-direction: row; }
    .md\\:w-1\\/2 { width: 50%; }
}

@media (min-width: 1024px) { /* Tailwind lg: 1024px */
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\\:text-left { text-align: left; }
    .lg\\:text-4xl { font-size: 2.25rem; }
    .lg\\:text-5xl { font-size: 3rem; }
    .lg\\:text-xl { font-size: 1.25rem; }
    .lg\\:order-1 { order: 1; }
    .lg\\:order-2 { order: 2; }
    .lg\\:mb-6 { margin-bottom: 1.5rem; }
    .lg\\:block { display: block; }
    .lg\\:hidden { display: none; }
}

/* Order classes for responsive layout */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

footer h3,
footer h4 {
    color: #f9fafb;
    position: relative;
}

footer h3::after,
footer h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

footer a {
    transition: var(--transition);
    position: relative;
}

footer a:hover {
    color: #FBBF24 !important;
    transform: translateX(3px);
}

footer .leading-relaxed {
    line-height: 1.6;
}

/* Footer responsive styles - ALIGNED WITH TAILWIND */
@media (max-width: 767px) { /* md breakpoint -1px */
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    footer .grid {
        gap: 1.5rem;
    }
    
    footer h3,
    footer h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    footer p,
    footer li {
        font-size: 0.875rem;
    }
    
    footer .px-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Final performance optimizations */
* {
    box-sizing: border-box;
}

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

button {
    cursor: pointer;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Mobile text alignment fixes - ALIGNED WITH TAILWIND */
@media (max-width: 1023px) { /* lg breakpoint -1px */
    /* Force left alignment on mobile for main content sections */
    .content-fade-in {
        text-align: left !important;
    }
    
    /* Specific overrides for elements that should stay centered */
    .method-card .text-center,
    .dosage-card .text-center {
        text-align: center !important;
    }
    
    /* Benefits section should have centered cards but left-aligned text inside */
    .benefit-card {
        text-align: left;
    }
    
    .benefit-card .text-center {
        text-align: center;
    }
    
    /* Section titles stay left aligned with their decorative elements */
    .section-title {
        text-align: left !important;
    }
    
    /* Ensure flex items alignment */
    .justify-center {
        justify-content: flex-start !important;
    }
    
    /* Keep some specific elements centered where it makes sense */
    .hero-section .text-center,
    .guarantee-badge,
    .cta-button {
        text-align: center !important;
    }
}

/* Utility classes for responsive text alignment */
.text-left-mobile {
    text-align: left;
}

@media (min-width: 768px) {
    .text-left-mobile {
        text-align: center;
    }
}

/* Utility classes for transitions and final optimizations */
.transition-colors {
    transition: color 0.3s ease;
}

/* Ensure title decorations work properly on mobile - ALIGNED WITH TAILWIND */
@media (max-width: 1023px) { /* lg breakpoint -1px */
    .title-decoration::after {
        left: 0; /* Always align decoration to left on mobile */
    }
    
    .title-decoration-white::after {
        left: 0;
        transform: none; /* Remove center transform on mobile */
    }
}

/* Fix for justified flex items on mobile - ALIGNED WITH TAILWIND */
@media (max-width: 1023px) { /* lg breakpoint -1px */
    .flex.items-center.justify-center {
        justify-content: flex-start !important;
    }
    
    .flex.items-center.justify-center.lg\\:justify-start {
        justify-content: flex-start !important;
    }
}