/* Milk Admin Homepage Styles */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.nav-logo svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://milkadmin.org/assets/milk-admin-bg.webp') center/cover;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Section Styles */
section {
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid - 4 cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Code Section */
.code-section {
    background: var(--gray-50);
}

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

.code-block-container {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.code-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.code-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
}

.code-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.code-tab.active {
    color: white;
    background: rgba(99, 102, 241, 0.2);
    border-bottom-color: var(--primary);
}

.code-tab i {
    font-size: 1.1rem;
}

.code-block {
    background: var(--dark);
    padding: 2rem;
    overflow-x: auto;
}

.code-block.tab-content {
    display: none;
}

.code-block.tab-content.active {
    display: block;
    animation: fadeInCode 0.3s ease-in;
}

@keyframes fadeInCode {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-block pre {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.code-block .keyword { color: #c792ea; }
.code-block .function { color: #82aaff; }
.code-block .string { color: #c3e88d; }
.code-block .comment { color: #697098; font-style: italic; }
.code-block .class-name { color: #ffcb6b; }
.code-block .variable { color: #f07178; }
.code-block .number { color: #f78c6c; }
.code-block .attribute { color: #c792ea; }
.code-block .property { color: #89ddff; }
.code-block .constant { color: #89ddff; }

.code-description h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.code-description p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.code-features {
    list-style: none;
}

.code-features li {
    padding: 0.75rem 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.code-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Challenge Section */
.challenge-section {
    background: white;
}

.challenge-intro-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0;
}

.challenge-intro {
    color: white;
    padding: 0 0 3rem 0;
    text-align: center;
}

.challenge-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.challenge-intro p {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
    color: white;
}

.projects-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    color: white;
}

.project-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.project-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-column li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.project-column li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
}

.feedback-box {
    background: var(--gray-50);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 2px dashed var(--gray-300);
}

.feedback-box h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feedback-box p {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* What You Get Section */
.what-you-get {
    background: var(--gray-50);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
}

.feature-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.feature-item-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.feature-item-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* GitHub Star Section */
.github-section {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
    color: white;
    text-align: center;
}

.github-box {
    max-width: 800px;
    margin: 0 auto;
}

.github-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.github-box p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-github {
    background: white;
    color: #24292e;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-github:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.github-icon {
    width: 24px;
    height: 24px;
}

/* CTA Section */
.cta-section {
    background: white;
    text-align: center;
}

.cta-box {
    background: var(--gray-50);
    padding: 4rem;
    border-radius: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.cta-box p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-legal {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

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

    .hero-content {
        padding: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .code-preview {
        grid-template-columns: 1fr;
    }

    .projects-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .challenge-intro-wrapper {
        padding: 3rem 1rem;
    }
}

/* Login Section */
.login-section {
    background: white;
    overflow: visible;
    position: relative;
    padding-bottom:5px;
}

.login-content {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 3rem;
    align-items: start;
    position: relative;
}

.login-text {
    max-width: 500px;
}

.login-intro {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.login-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.login-list li {
    font-size: 0.95rem;
    color: var(--gray-700);
    padding-left: 1.25rem;
    position: relative;
}

.login-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.login-screenshot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: -13%;
    margin-top: -5%;
    margin-bottom: -3rem;
}

.screenshot-image {
    width: 130%;
    max-width: 130%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive for Login Section */
@media (max-width: 968px) {
    .login-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .login-text {
        max-width: 100%;
    }


    .login-screenshot {
        margin-right: 0;
    }

    .screenshot-image {
        width: 100%;
        max-width: 100%;
    }

    @keyframes slideInFromRight {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Screenshot placeholders */
.screenshot {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
    font-style: italic;
    margin: 2rem 0;
}
