* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Improve image and SVG rendering in Safari */
img, svg {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Force color profile for better color rendering in Safari */
@media (-webkit-min-device-pixel-ratio: 1) {
    body {
        color-profile: sRGB;
    }
}

nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 2rem;
    padding-left: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

nav a.active {
    opacity: 0.9;
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: #667eea;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

.hidden {
    display: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.color-bar {
    height: 60px;
    background-color: white;
    background-image: url('images/press-bar.svg');
    background-size: auto 100%;
    background-position: left center;
    background-repeat: repeat-x;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-section {
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 8px;
    margin: 0 2rem 2rem;
    padding: 3rem;
}

.about-section h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(102,126,234,0.1);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover {
    text-decoration: underline;
}

.color-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
    transform: translateY(0);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 500;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
}

.tool-icon {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
    transition: all 0.3s ease;
}

.tool-icon img {
    display: block;
    margin: 0 auto;
}

.tool-card:hover .tool-icon {
    box-shadow: 0 12px 30px rgba(102,126,234,0.4);
    transform: scale(1.05);
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    margin-bottom: 0;
    width: 100%;
    line-height: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0;
    padding: 0;
    font-weight: 300;
    text-shadow: 0 3px 10px rgba(0,0,0,0.2);
    line-height: 1;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin: 0;
    padding: 0;
    line-height: 1;
}

.page-content {
    min-height: 60vh;
}

.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.page-header h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.page-header p {
    font-size: 1.1rem;
    color: #555;
}

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

.service-card {
    background: white;
    border-left: 4px solid #667eea;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(5px);
}

.service-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.contact-section {
    padding: 4rem 2rem;
}

.contact-section h2 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
}
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

.required {
    color: #ff6b6b;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.submit-btn:hover {
    opacity: 0.9;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: #48dbfb;
    text-decoration: none;
}

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

.content-section {
    background: #f8f9fa;
}

.news-item {
    background: white;
    border-left: 4px solid #48dbfb;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.news-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Service Detail Pages */
.service-detail {
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 8px;
    margin: 2rem;
    padding: 3rem;
}

.service-detail h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-weight: 500;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.service-detail h2:first-of-type {
    margin-top: 0;
}

.service-detail p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.service-detail ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
    list-style-position: outside;
}

.service-detail li {
    color: #555;
    margin-bottom: 0.5rem;
    padding-left: 0.5em;
    text-indent: -0.5em;
    margin-left: 0.5em;
}

.highlight-box {
    background: linear-gradient(135deg, #f5f7ff 0%, #fff5f9 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.highlight-box p {
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.standards-list {
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.standards-list h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.standards-list ul {
    margin-left: 1.5rem;
    list-style-position: outside;
}

.standards-list li {
    padding-left: 0.5em;
    text-indent: -0.5em;
    margin-left: 0.5em;
}

.expert-credential {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.expert-credential h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.expert-credential p {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.logo-header {
    width: 100%;
    background: white;
    padding: 0.5rem 0 0.25rem 0;
    text-align: center;
}

.main-logo {
    height: 150px;
    width: auto;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background: #667eea;
        color: white;
        border: none;
        font-size: 1.5rem;
        padding: 0.5rem 0.75rem;
        cursor: pointer;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 250px;
        height: 100vh;
        padding: 4rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 15px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .about-section h2,
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }

    .main-logo {
        height: 90px;
    }

    .service-detail {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .service-detail h2 {
        font-size: 1.5rem;
    }
}
