/* TransiVault - Google-Inspired Design */

:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --accent-color: #34a853;
    --background-primary: #ffffff;
    --background-secondary: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-accent: #1a73e8;
    --border-color: #dadce0;
    --shadow-elevation-1: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --shadow-elevation-2: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    --shadow-elevation-3: 0 2px 6px 2px rgba(60,64,67,.15), 0 8px 24px 4px rgba(60,64,67,.15);
}

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

body {
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Clean Header Section */
.header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo img {
    height: 32px;
    width: auto;
}

.header-logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}

/* Main Content Area */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 200px);
    justify-content: center;
}

.main-content {
    max-width: 1000px;
    width: 100%;
}

.hero-section {
    margin-bottom: 64px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    gap: 16px;
}

.logo-icon {
    height: 64px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.main-heading {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.25px;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 680px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 64px 0;
    width: 100%;
}

.feature {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
    box-shadow: var(--shadow-elevation-2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-elevation-1);
}

.footer {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    background: var(--background-secondary);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Products Section - Clean Card Layout */
.products-section {
    margin: 80px 0;
    width: 100%;
    position: relative;
}

.products-heading {
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.25px;
}

.products-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.product-card {
    width: 100%;
    min-width: 840px;
    max-width: 840px;
    margin: 80px auto;
    opacity: 0.4;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card.in-focus {
    opacity: 1;
    transform: translateY(0);
}

.product-card.in-focus .product-content {
    box-shadow: var(--shadow-elevation-3);
    border-color: rgba(26, 115, 232, 0.2);
}

.product-card.in-focus .product-content::before {
    opacity: 1;
}

.product-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: 280px;
}

.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Left-aligned cards: icon left, text right */
.product-card-left .product-content {
    flex-direction: row;
}

.product-card-left .product-info {
    text-align: left;
    flex: 1;
}

.product-card-left .product-icon {
    order: -1;
}

.product-info {
    flex: 1;
}

.product-icon {
    width: 120px;
    height: 120px;
    background: var(--background-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.product-card.in-focus .product-icon {
    background: var(--primary-color);
    transform: scale(1.05);
}

.product-icon .material-icons {
    font-size: 48px;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.product-card.in-focus .product-icon .material-icons {
    color: white;
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 500px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-tag {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.product-card.in-focus .product-tag {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Subtle Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0);
    }
}

/* Apply entrance animations to product cards */
.product-card-left {
    animation: slideInLeft 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }

    .container {
        padding: 48px 24px;
    }

    .logo-text {
        font-size: 36px;
    }

    .logo-icon {
        height: 48px;
    }

    .main-heading {
        font-size: 28px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 48px 0;
    }

    .feature {
        padding: 24px 20px;
    }

    .social-links {
        margin-top: 32px;
    }

    .products-section {
        margin: 48px 0;
    }

    .products-heading {
        font-size: 28px;
    }

    .products-list {
        padding: 0 10px;
    }

    .product-card {
        min-width: auto;
        margin: 40px auto;
    }

    .product-content {
        flex-direction: column !important;
        text-align: center !important;
        padding: 32px 24px;
        gap: 24px;
    }

    .product-card-left .product-info {
        text-align: center !important;
    }

    .product-icon {
        width: 80px;
        height: 80px;
        order: -1 !important;
    }

    .product-icon .material-icons {
        font-size: 36px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-description {
        font-size: 15px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 32px 16px;
    }

    .logo-text {
        font-size: 28px;
    }

    .logo-icon {
        height: 40px;
    }

    .main-heading {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }

    .description {
        font-size: 15px;
    }

    .features {
        margin: 32px 0;
    }

    .products-section {
        margin: 32px 0;
    }

    .products-heading {
        font-size: 24px;
    }

    .products-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .products-list {
        padding: 0 5px;
    }

    .product-content {
        padding: 24px 16px;
    }

    .product-icon {
        width: 56px;
        height: 56px;
    }

    .product-icon .material-icons {
        font-size: 28px;
    }

    .product-title {
        font-size: 16px;
    }

    .product-description {
        font-size: 13px;
    }
}
