/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #fafafa;
}

/* Logo Styling */
.logo {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1976d2;
}

.logo-ai {
    color: #ff6f00;
    font-style: italic;
}

.logo-large {
    font-size: 3rem;
    font-weight: 700;
    color: #1976d2;
}

.logo-large .logo-ai {
    color: #ff6f00;
    font-style: italic;
}

/* App Bar Styling */
.top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    color: #212121;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.app-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-bar-section {
    display: flex;
    align-items: center;
}

.app-bar-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.main-content {
    padding-top: 64px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #212121;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: #f5f5f5;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 6rem 2rem 4rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-cta {
    background-color: #ff6f00 !important;
    color: white !important;
}

.hero-secondary {
    border-color: white !important;
    color: white !important;
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background-color: #ffffff;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    color: #212121;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #757575;
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.089em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: none;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:hover:before {
    opacity: 1;
}

.btn-raised {
    background-color: #1976d2;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-raised:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.btn-outlined {
    border: 2px solid currentColor;
    background: transparent;
}

.btn-outlined:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-content {
    padding: 2rem;
}

/* Icon Styles */
.icon {
    font-size: 2rem;
    display: inline-block;
}

.service-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.service-icon .icon {
    font-size: 3rem;
}

/* Form Styles */
.form-field {
    margin-bottom: 1.5rem;
}

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

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background-color: #fafafa;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1976d2;
    background-color: white;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.service-card {
    margin: 0;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #212121;
    text-align: center;
}

.service-description {
    margin-bottom: 1.5rem;
    color: #757575;
    line-height: 1.6;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: #616161;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: #f5f5f5;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #212121;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #757575;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #616161;
}

.contact-method .icon {
    color: #1976d2;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.submit-button {
    background-color: #1976d2 !important;
    color: white !important;
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: #212121;
    color: white;
    padding: 3rem 2rem 1rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 0.5rem;
    color: #bdbdbd;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #424242;
    color: #9e9e9e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .logo-large {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero {
        padding: 4rem 1rem 3rem;
        min-height: 70vh;
    }
    
    .services,
    .contact {
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-large {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        gap: 1.5rem;
    }
}

/* Material Design Enhancements */
.card {
    border-radius: 8px;
}

.btn {
    border-radius: 4px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.card:focus,
.btn:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* Ripple Effect */
.btn,
.card {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animation for Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}