/* non-critical.css */

/* Section Styling */
section {
    padding: 8rem 4rem;
    background: var(--background);
}

section:nth-child(even) {
    background: var(--background-alt);
}

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

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 25ch;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--serif);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.service-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: var(--background);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.team-member span {
    color: var(--text-light);
}

.team-section {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.team-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-align: center;
}

.team-section .team-member {
    max-width: 250px;
    margin: 0 auto;
}

/* Testimonials */
.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 4rem;
    border: 1px solid var(--border);
}

.testimonial:last-child {
    margin-bottom: 0;
}

blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

cite {
    display: block;
    font-style: normal;
    color: var(--text);
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* LinkedIn Link */
.linkedin-link {
    color: var(--accent);
    text-decoration: none;
    margin-left: 0.5rem;
    font-size: 0.9em;
    transition: opacity 0.3s ease;
}

.linkedin-link:hover {
    opacity: 0.7;
}

/* Contact Section Styles */
#contact .container {
    max-width: 1200px;
    margin: 0 auto;
}

#contact h2 {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3, 
#contact-form h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

#contact-form p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.copy-group {
    background-color: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

:root[data-theme="dark"] .copy-group {
    background-color: #1e293b;
    border-color: #475569;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .copy-group {
        background-color: #1e293b;
        border-color: #475569;
    }
}

.copy-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.copy-text {
    flex: 1;
    color: var(--text);
    text-decoration: none;
    margin-right: 0.5rem;
}

.copy-btn,
.copy-group-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: var(--serif);
}

.copy-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.copy-group-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.copy-btn:hover,
.copy-group-btn:hover,
#contact-form button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

:root[data-theme="dark"] .copy-btn,
:root[data-theme="dark"] .copy-group-btn,
:root[data-theme="dark"] #contact-form button {
    background-color: #3b82f6;
}

:root[data-theme="dark"] .copy-btn:hover,
:root[data-theme="dark"] .copy-group-btn:hover,
:root[data-theme="dark"] #contact-form button:hover {
    background-color: #60a5fa;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .copy-btn,
    :root[data-theme="auto"] .copy-group-btn,
    :root[data-theme="auto"] #contact-form button {
        background-color: #3b82f6;
    }

    :root[data-theme="auto"] .copy-btn:hover,
    :root[data-theme="auto"] .copy-group-btn:hover,
    :root[data-theme="auto"] #contact-form button:hover {
        background-color: #60a5fa;
    }
}

.copy-btn.success,
.copy-group-btn.success {
    background-color: var(--success);
}

:root[data-theme="dark"] .copy-btn.success,
:root[data-theme="dark"] .copy-group-btn.success {
    background-color: #059669;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] .copy-btn.success,
    :root[data-theme="auto"] .copy-group-btn.success {
        background-color: #059669;
    }
}

/* Contact Form Styles */
.form-success-message {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.form-success-message h3 {
    margin: 0;
    font-weight: 400;
    color: var(--success);
}

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

.form-group {
    flex: 1;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    color: var(--text);
    font-family: var(--serif);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="light"] #contact-form input,
:root[data-theme="light"] #contact-form textarea,
:root[data-theme="auto"] #contact-form input,
:root[data-theme="auto"] #contact-form textarea {
    background-color: #ffffff;
    border-color: #94a3b8;
    color: #0f172a;
}

:root[data-theme="light"] #contact-form input:focus,
:root[data-theme="light"] #contact-form textarea:focus,
:root[data-theme="auto"] #contact-form input:focus,
:root[data-theme="auto"] #contact-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    outline: none;
}

:root[data-theme="dark"] #contact-form input,
:root[data-theme="dark"] #contact-form textarea {
    background-color: #1e293b;
    border-color: #64748b;
    color: #f1f5f9;
}

:root[data-theme="dark"] #contact-form input:focus,
:root[data-theme="dark"] #contact-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
    outline: none;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] #contact-form input,
    :root[data-theme="auto"] #contact-form textarea {
        background-color: #1e293b;
        border-color: #64748b;
        color: #f1f5f9;
    }

    :root[data-theme="auto"] #contact-form input:focus,
    :root[data-theme="auto"] #contact-form textarea:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
        outline: none;
    }
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    opacity: 1;
}

:root[data-theme="light"] #contact-form input::placeholder,
:root[data-theme="light"] #contact-form textarea::placeholder,
:root[data-theme="auto"] #contact-form input::placeholder,
:root[data-theme="auto"] #contact-form textarea::placeholder {
    color: #64748b;
}

:root[data-theme="dark"] #contact-form input::placeholder,
:root[data-theme="dark"] #contact-form textarea::placeholder {
    color: #94a3b8;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] #contact-form input::placeholder,
    :root[data-theme="auto"] #contact-form textarea::placeholder {
        color: #94a3b8;
    }
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-row {
    align-items: center;
}

.email-group {
    flex: 2;
}

#contact-form button {
    flex: 1;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--serif);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Footer */
footer {
    padding: 4rem;
    background: var(--background-alt);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links .copy-container {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    color: var(--text-light);
    padding-top: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 4rem;
}

.client-logo {
    max-width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
}

/* Responsive Design */
@media (max-width: 880px) {
    section {
        padding: 6rem 2rem;
    }

    .services-grid, 
    .stats-grid, 
    .team-grid,
    .clients-grid {
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }

    .services-grid, 
    .stats-grid, 
    .team-grid,
    .clients-grid {
        gap: 2rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    blockquote {
        font-size: 1.1rem;
    }

    footer {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .submit-row {
        flex-direction: column;
    }

    #contact-form button {
        width: 100%;
        margin-top: 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-grid {
        gap: 2rem;
    }

    .copyright {
        padding-top: 2rem;
        margin-top: 2rem;
    }
}
