.page-hero {
    margin-left: 80px;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.05) 0%, transparent 70%);
    animation: rotate 40s linear infinite;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.company-info {
    margin-left: 80px;
    padding: 80px 20px;
    background: var(--bg-white);
}

.company-info .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.info-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid var(--border-color);
}

.company-table tr:last-child {
    border-bottom: none;
}

.company-table th {
    text-align: left;
    padding: 15px 20px 15px 0;
    color: var(--text-light);
    font-weight: 500;
    width: 30%;
    vertical-align: top;
}

.company-table td {
    padding: 15px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.business-list {
    list-style: none;
    padding: 0;
}

.business-list li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.business-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.map-container {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.access-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.access-info ul {
    list-style: none;
    padding: 0;
}

.access-info li {
    padding: 8px 0;
    color: var(--text-dark);
    padding-left: 25px;
    position: relative;
}

.access-info li::before {
    content: '🚃';
    position: absolute;
    left: 0;
}

.philosophy-section {
    margin-top: 60px;
}

.philosophy-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.philosophy-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

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

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.philosophy-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.philosophy-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.history-section {
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.history-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-light);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

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

.service-detail {
    margin-left: 80px;
    padding: 80px 20px;
    background: var(--bg-white);
}

.service-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .service-detail { margin-left: 80px; }
}

@media (max-width: 768px) {
    .service-detail { margin-left: 0; }
    .service-detail .container { padding: 0 20px; }
}

.service-intro {
    text-align: left;
    margin: 0 0 40px;
    max-width: 100%;
}

/* Shift the services grid to the right on wide screens */
.services-overview { margin-left: 0; margin-right: 0; }

@media (max-width: 1024px) {
    .services-overview {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .services-overview {
        margin-left: 0;
        margin-right: 0;
    }
}

.service-intro h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: left;
}

.service-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.service-section {
    margin-bottom: 100px;
    padding: 60px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.service-title-block h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.service-tagline {
    color: var(--text-light);
    font-size: 1.1rem;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.service-description p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-features,
.service-process,
.service-benefits,
.tech-stack,
.materials,
.applications {
    margin-bottom: 30px;
}

.service-features h3,
.service-process h3,
.service-benefits h3,
.tech-stack h3,
.materials h3,
.applications h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.service-features ul,
.applications ul {
    list-style: none;
    padding: 0;
}

.service-features li,
.applications li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
}

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

.process-steps {
    display: grid;
    gap: 20px;
}

.process-step {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 8px;
    transition: var(--transition);
}

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

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
}

.process-step h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.benefit-cards {
    display: grid;
    gap: 20px;
}

.benefit-card {
    padding: 20px;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.benefit-card h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.tech-grid,
.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tech-item,
.material-item {
    padding: 20px;
    background: var(--bg-white);
    border-radius: 8px;
}

.tech-item h4,
.material-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.tech-item p,
.material-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-showcase {
    position: sticky;
    top: 100px;
}

.showcase-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.showcase-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.showcase-card ul {
    list-style: none;
    padding: 0;
}

.showcase-card li {
    padding: 8px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.showcase-card li:last-child {
    border-bottom: none;
}

.service-cta {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    color: white;
}

.service-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

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

.service-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-section {
    margin-left: 80px; /* avoid left rail */
    padding: 80px 20px;
    background: var(--bg-white);
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contact-intro h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.contact-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

/* Success message styling */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-message svg {
    margin-bottom: 24px;
}

.success-message h3 {
    font-size: 24px;
    color: var(--ink-3);
    margin-bottom: 16px;
}

.success-message p {
    font-size: 16px;
    color: var(--ink-2);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-message .btn {
    display: inline-block;
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
    font-family: inherit;
    color: var(--text-dark);
}

/* Style for select option placeholders */
.form-group select option[value=""] {
    color: #9ca3af;
}

/* Make select text gray when placeholder is selected */
.form-group select:invalid,
.form-group select:has(option[value=""]:checked) {
    color: #9ca3af;
}

/* Make select text dark when actual option is selected */
.form-group select:valid:not(:has(option[value=""]:checked)) {
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.contact-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-content p {
    color: var(--text-dark);
    font-size: 1rem;
}

.response-time {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.response-time h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.response-time ul {
    list-style: none;
    padding: 0;
}

.response-time li {
    padding: 10px 0;
    color: var(--text-light);
    padding-left: 25px;
    position: relative;
}

.response-time li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: var(--primary-color);
}

.faq-mini {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.faq-mini h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .service-showcase {
        position: static;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .service-section {
        padding: 40px 20px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-grid,
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item::before {
        left: -25px;
    }
}
