/* Mobile-First Responsive Design - Mass Tort Team */

/* ===== CORE FOUNDATION ===== */
:root {
    --primary: #1a202c;
    --secondary: #3182ce;
    --accent: #2b6cb0;
    --success: #38a169;
    --warning: #ed8936;
    --light-bg: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 16px;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    background: #ffffff;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive container widths */
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 768px) { .container { padding: 0 2rem; max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1200px; } }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1rem 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.875rem; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--secondary);
}

/* Navigation */
.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.contact-info {
    display: none;
    flex-direction: column;
    font-size: 0.875rem;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .contact-info {
        display: flex;
    }
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--secondary);
    width: 16px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, 
        rgba(26, 32, 44, 0.9), 
        rgba(49, 130, 206, 0.8));
    color: white;
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 70px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.hero-stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--warning);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-buttons .btn {
    min-width: 200px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ===== GRID LAYOUTS ===== */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

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

@media (min-width: 768px) {
    .card {
        padding: 2rem;
    }
}

/* Service cards */
.service-card {
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--secondary);
}

.service-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.service-features li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ===== FORMS ===== */
.form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .form-section {
        padding: 3rem;
        max-width: 800px;
    }
}

/* Contact methods within case evaluation */
.case-evaluation .contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.case-evaluation .contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--light-bg);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 250px;
    text-align: left;
}

.case-evaluation .contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.case-evaluation .contact-method i {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.case-evaluation .contact-method:hover i {
    transform: scale(1.1);
}

.case-evaluation .contact-method h4 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.case-evaluation .contact-method p {
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    font-size: 1.1rem;
}

.case-evaluation .contact-method small {
    color: var(--text-light);
    display: block;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .case-evaluation .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .case-evaluation .contact-method {
        min-width: auto;
        max-width: none;
    }
}

/* Ready to Get Started Section */
.ready-to-start {
    padding: 4rem 0;
    background: var(--light-bg);
    position: relative;
}

.ready-to-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.ready-to-start .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ready-to-start .form-section {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* ===== CASE ITEMS ===== */
.case-item {
    position: relative;
    border-left: 4px solid var(--secondary);
}

.case-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.case-value {
    background: var(--light-bg);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
    margin-top: 1rem;
}

/* ===== TEAM MEMBERS ===== */
.team-photo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.team-member .role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.credentials span {
    background: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonial {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.stars {
    margin-bottom: 1rem;
    color: var(--warning);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial cite {
    display: block;
    font-style: normal;
    font-weight: 600;
}

.settlement {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact .contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
    min-width: 280px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.contact-method i {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    transform: scale(1.1);
}

.contact-method h4 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-method p {
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-method small {
    color: var(--text-light);
    display: block;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-method {
        min-width: auto;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--secondary);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

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

.hidden { display: none; }

@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== CHECKBOX STYLING ===== */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-dark);
}

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

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label:hover .checkmark {
    border-color: var(--secondary);
}

/* ===== CENTERED CONTACT INFO ===== */
.contact-info-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-centered .contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contact-info-centered .contact-methods {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ===== CLIENT SUCCESS STORIES ===== */
.client-success {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.success-story-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.success-story-card.highlighted {
    border: 2px solid var(--secondary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.success-story-card.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.success-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
}

.success-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.client-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem 0;
}

.case-type {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.settlement-badge {
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.testimonial-quote {
    margin-bottom: 1.5rem;
    position: relative;
}

.quote-icon {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.rating i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.rating span {
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .success-stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .success-story-card {
        padding: 1.5rem;
    }
    
    .success-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ===== MODERN ABOUT SECTION ===== */
.about-modern {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.section-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* Statistics Showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.stats-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.05"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary), var(--accent));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Call to Action */
.about-cta {
    text-align: center;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    transition: all 0.3s ease;
}

.about-cta:hover {
    border-color: var(--secondary);
    background: rgba(49, 130, 206, 0.02);
}

.about-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.about-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-modern {
        padding: 3rem 0;
    }
    
    .section-header .section-title {
        font-size: 2rem;
    }
    
    .stats-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .about-cta {
        padding: 2rem;
    }
    
    .about-cta h3 {
        font-size: 1.5rem;
    }
}

/* ===== MODERN SERVICES SECTION ===== */
.services-modern {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card-modern.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.02);
}

.service-card-modern.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.service-card-modern.featured:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Horizontal Service Header Layout */
.service-header-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-icon-horizontal {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 1rem;
    transition: all 0.3s ease;
}

.service-icon-horizontal img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.service-card-modern:hover .service-icon-horizontal {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: scale(1.05);
}

.service-card-modern:hover .service-icon-horizontal img {
    filter: brightness(0) invert(1);
}

.service-title-section {
    flex: 1;
}

.service-title-section h3 {
    margin: 0 0 0.5rem 0;
}

.service-title-section p {
    margin: 0 0 1rem 0;
}

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

.service-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-modern {
    transform: rotate(5deg) scale(1.1);
}

.service-icon-modern i {
    font-size: 1.5rem;
    color: white;
}

.service-badge {
    background: var(--warning);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.service-card-modern p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-tag {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(49, 130, 206, 0.3);
}

.service-cta i {
    transition: transform 0.3s ease;
}

.service-cta:hover i {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-modern {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-modern {
        padding: 2rem;
    }
    
    .service-card-modern.featured {
        transform: none;
    }
    
    .service-card-modern.featured:hover {
        transform: translateY(-8px);
    }
    
    .service-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ===== CASE HIGHLIGHTS ===== */
.case-highlights {
    margin: 2rem 0;
}

.case-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(49, 130, 206, 0.02);
    border-radius: var(--radius);
    border-left: 3px solid var(--secondary);
    transition: all 0.2s ease;
}

.case-item:hover {
    background: rgba(49, 130, 206, 0.05);
    transform: translateX(3px);
}

.case-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.case-icon i {
    font-size: 0.9rem;
    color: white;
}

.case-icon-img {
    background: white !important;
    border: 2px solid var(--secondary);
    padding: 6px;
}

.case-icon-img img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: none;
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.case-details strong {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.case-details span {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== SERVICE STATS ===== */
.service-stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.service-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.service-stats .stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.service-stats .stat span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .case-item {
        padding: 0.75rem;
    }
    
    .case-icon {
        width: 32px;
        height: 32px;
    }
    
    .case-icon i {
        font-size: 0.8rem;
    }
    
    .service-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* ===== POPUP STYLES ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-popup {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    margin: 1rem;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.popup-overlay.show .success-popup {
    transform: translateY(0);
}

.popup-content {
    padding: 2rem;
    text-align: center;
}

.popup-icon {
    margin-bottom: 1rem;
}

.popup-icon i {
    font-size: 3rem;
    color: var(--success);
}

.popup-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.popup-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-ok-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-ok-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}