/* HabitForge Marketing Website Styles */

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

:root {
    --primary-color: #6750A4;
    --primary-light: #7F67BE;
    --primary-dark: #4F378B;
    --secondary-color: #625B71;
    --background: #FFFBFE;
    --surface: #FFFFFF;
    --surface-variant: #E7E0EC;
    --on-primary: #FFFFFF;
    --on-background: #1C1B1F;
    --on-surface: #1C1B1F;
    --on-surface-variant: #49454F;
    --success: #198754;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--on-background);
    background-color: var(--background);
}

/* Navigation */
nav {
    background-color: var(--surface);
    box-shadow: 0 2px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--on-primary);
    padding: 6rem 2rem;
    text-align: center;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--surface);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--on-primary);
    border: 2px solid var(--on-primary);
}

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

/* Video Section */
.video-section {
    padding: 4rem 2rem;
    background-color: var(--surface);
}

.video-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--on-surface);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.video-placeholder {
    background-color: var(--surface-variant);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-placeholder p:first-child {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-text {
    color: var(--on-surface-variant);
    font-style: italic;
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background-color: var(--background);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--on-surface);
}

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

.feature-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--on-surface-variant);
}

/* Screenshots Section */
.screenshots-section {
    padding: 4rem 2rem;
    background-color: var(--surface);
}

.screenshots-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--on-surface);
}

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

.screenshot-card {
    text-align: center;
}

.screenshot-placeholder {
    background-color: var(--surface-variant);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.screenshot-placeholder p:first-child {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.phone-frame {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin: 0 auto 1.5rem;
    max-width: 320px;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #444;
    border-radius: 2px;
}

.phone-frame img {
    width: 100%;
    border-radius: 24px;
    display: block;
    background: white;
}

.screenshot-card img {
    width: 100%;
}

.screenshot-caption {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 2rem;
    background-color: var(--background);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--on-surface);
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--on-surface);
    margin-bottom: 1rem;
}

.step p {
    color: var(--on-surface-variant);
}

/* Tech Stack Section */
.tech-stack {
    padding: 4rem 2rem;
    background-color: var(--surface);
}

.tech-stack h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--on-surface);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background-color: var(--surface-variant);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.tech-item strong {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--on-primary);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--on-primary);
    padding: 4rem 2rem;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.team-section {
    padding: 4rem 2rem;
    background-color: var(--background);
}

.team-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--on-surface);
}

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

.team-member {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow);
}

.member-avatar {
    margin-bottom: 1rem;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    color: var(--on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
}

.team-member h3 {
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
}

.member-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.member-links a {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.linkedin-link {
    background-color: #0077B5;
    color: white;
}

.linkedin-link:hover {
    background-color: #006399;
}

.github-link {
    background-color: #24292e;
    color: white;
}

.github-link:hover {
    background-color: #1a1e22;
}

/* Project Info Section */
.project-info {
    padding: 4rem 2rem;
    background-color: var(--surface);
}

.project-info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--on-surface);
}

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

.detail-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 12px;
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-card p {
    color: var(--on-surface-variant);
}

/* Tech Details Section */
.tech-details {
    padding: 4rem 2rem;
    background-color: var(--background);
}

.tech-details h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--on-surface);
}

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

.arch-item {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.arch-item h3 {
    color: var(--on-surface);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.arch-item ul {
    list-style: none;
}

.arch-item li {
    color: var(--on-surface-variant);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.arch-item li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* GitHub Section */
.github-section {
    padding: 4rem 2rem;
    background-color: var(--surface);
    text-align: center;
}

.github-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--on-surface);
}

.github-section p {
    font-size: 1.1rem;
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--surface);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--surface-variant);
}

footer p {
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .features-grid,
    .screenshots-grid,
    .steps-grid,
    .tech-grid,
    .team-grid,
    .project-details,
    .architecture-grid {
        grid-template-columns: 1fr;
    }

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

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

    section h2 {
        font-size: 2rem !important;
    }
}
