@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on your header height */
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border: 1px solid rgb(229 231 235);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.12);
}

.feature-card dt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.feature-card .icon-wrapper {
    margin-bottom: 1rem;
}

/* Section animations */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation link transitions */
.nav-links a {
    transition: color 0.2s ease-out;
}

/* Mobile menu transitions */
[data-mobile-menu] {
    transition: transform 0.3s ease-out;
}

[data-backdrop] {
    transition: opacity 0.3s ease-out;
}

/* Icon alignment and spacing */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
}

.material-icons {
    vertical-align: middle;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Material Design elevation */
.elevation-1 {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.elevation-1:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

/* Material Design spacing */
.section-spacing {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-spacing {
    margin: 2rem 0;
}

/* Material Design typography scale */
.display-large {
    font-size: 3.5rem;
    line-height: 4rem;
    letter-spacing: -0.0156em;
}

.display-medium {
    font-size: 2.8rem;
    line-height: 3.25rem;
    letter-spacing: -0.0083em;
}

.headline-large {
    font-size: 2rem;
    line-height: 2.5rem;
    letter-spacing: -0.0031em;
}

/* Add consistent spacing for icon sections */
.flex-col.items-center dt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Center alignments */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center all description lists */
dl {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center command cards */
.relative.flex.items-center {
    justify-content: center;
    text-align: center;
}

/* Center tutorial items and their icons */
.tutorial-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 3rem;
    width: 100%;
}

.tutorial-item dt {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tutorial-item .icon-wrapper {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Command cards as columns */
.command-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
}

.command-card .icon-wrapper {
    margin-bottom: 0.5rem;
}

.command-card .command-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Footer specific styles */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    transition: color 0.2s ease-out;
}

/* Responsive footer */
@media (max-width: 768px) {
    footer .flex.items-center.justify-between {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* CTA Button styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.cta-button-primary {
    background-color: rgb(17 24 39);
    color: white;
}

.cta-button-primary:hover {
    background-color: rgb(31 41 55);
}

.cta-button-secondary {
    color: rgb(17 24 39);
}

.cta-button-secondary:hover {
    color: rgb(55 65 81);
}

/* Icon alignment in buttons */
.cta-button .material-icons {
    font-size: 1.25rem;
}

/* Tutorial cards with step numbers */
.tutorial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border: 1px solid rgb(229 231 235);
}

.step-number {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgb(17 24 39);
    color: white;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.tutorial-card:hover .step-number {
    transform: scale(1.1);
    transition: transform 0.2s ease-out;
}

/* Update responsive footer */
@media (max-width: 768px) {
    footer nav {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    footer .max-w-sm {
        text-align: center;
    }
}

/* Consistent spacing for all sections */
.section-content {
    margin-top: 4rem;
}

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

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Settings cards with different design */
.settings-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    position: relative;
    overflow: hidden;
}

.settings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgb(243 244 246);
    transition: height 0.3s ease-out;
    z-index: 0;
}

.settings-card:hover::before {
    height: 100%;
}

.settings-card dt,
.settings-card dd {
    position: relative;
    z-index: 1;
}

.settings-card .icon-wrapper {
    background: white;
    transition: transform 0.3s ease-out;
}

.settings-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Update spacing for settings section */
.settings-section {
    margin-top: 6rem;
}

.settings-grid {
    margin-top: 5rem;
}

/* Active navigation state */
nav a.active {
    color: rgb(17 24 39); /* text-gray-900 */
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform-origin: center;
    transition: transform 0.2s ease;
}

/* Prevent content jump on short pages */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Smooth transitions for navigation links */
nav a {
    transition: color 0.2s ease-out;
} 