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

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #1a1a1a;
    --text-color: #2c2c2c;
    --text-light: #666;
    --bg-dark: #1a1a1a;
    --bg-light: #f5f5f5;
    --accent-color: #2563eb;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
header {
    background-color: #1f1f1f;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ffffff;
    color: var(--text-color);
    padding: 1rem 0 0.5rem 0;
    position: relative;
}

.hero-logo {
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0 auto 0.75rem;
    opacity: 1;
}

.hero h1 {
    margin-top: 0;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

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

/* Buttons - Unified Style */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    background-color: var(--white);
    color: var(--primary-color);
}

.btn:hover {
    background-color: #ff6b35;
    color: var(--white);
    border-color: #ff6b35;
}

.btn-card {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Services Section */
.services {
    padding: 1rem 0 3rem 0;
    background-color: var(--white);
}


.services h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
    grid-column: span 1;
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: span 1;
    }
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    cursor: default;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
}


.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-logo {
    width: 48px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-wrapper .contact-form {
    order: 2;
}

.contact-wrapper .contact-info {
    order: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--text-color);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover .contact-icon,
.contact-item a:hover {
    color: #ff6b35;
}

.contact-item strong {
    color: var(--text-color);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: var(--white);
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

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

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

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

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

.contact-form .btn {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    text-align: left;
    font-style: italic;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.contact-form .btn:disabled:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: none;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.footer-column p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-column p:last-child {
    margin-bottom: 0;
}

.footer-column .icon {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

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

.footer-column a:hover {
    color: var(--white);
}

/* Desktop Optimizations */
@media (min-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 1rem 0 0.5rem 0;
    }

    .hero-logo {
        margin: 1.5rem auto 0.75rem;
    }

    .hero-subtitle {
        margin-bottom: 1.25rem;
    }

    .hero-buttons {
        margin-top: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 1rem 0 0.5rem 0;
    }

    .hero-logo {
        max-width: 320px;
        margin: 0.5rem auto 0.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: span 1;
    }

    .services h2,
    .contact h2 {
        font-size: 2rem;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .contact .container {
        max-width: 100%;
        padding: 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 1rem;
    }

    .contact-wrapper .contact-form {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .contact-wrapper .contact-info {
        order: 2;
        text-align: left;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    .contact-item {
        justify-content: flex-start;
        font-size: 1rem;
        flex-wrap: wrap;
        word-break: break-word;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .form-group {
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.25rem 0;
    }

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

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

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

    .contact-form .btn {
        width: 100%;
        max-width: 100%;
    }

    .contact-form .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-column {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 1rem 0 0.5rem 0;
    }

    .hero-logo {
        max-width: 280px;
        margin: 0.5rem auto 0.75rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services,
    .contact {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .contact .container {
        padding: 0;
        max-width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0.75rem;
    }

    .contact-wrapper .contact-form {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .contact-wrapper .contact-info {
        order: 2;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .contact-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 0.75rem;
    }

    .contact-item {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        word-break: break-word;
    }

    .contact-item strong {
        display: inline-block;
        min-width: 70px;
    }

    .contact-icon {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }

    .contact-form {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .form-group {
        width: 100%;
        margin: 0 0 1.25rem 0;
    }

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

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

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

    .contact-form .btn {
        width: 100%;
        max-width: 100%;
    }

    .service-card {
        padding: 2rem;
    }

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

    .footer-column {
        text-align: center;
    }
}
