/* ============================================
   Homepage - Dark Mode Styles
   Matches portfolio page / DevOpser Lite design
   ============================================ */

/* ================================
   Base Overrides
   ================================ */
.home-page {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.home-page *,
.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page h5,
.home-page h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ================================
   Header / Navigation
   ================================ */
.home-page header {
    background: #000;
    border-bottom: 1px solid #444;
    padding: 1rem 0;
}

.home-page header .container {
    flex-direction: row-reverse;
}

.home-page header nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.home-page header nav ul li a:hover {
    color: #fff;
}

.home-page header nav ul li a.highlight-nav {
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    animation: none;
    box-shadow: none;
}

.home-page header nav ul li a.highlight-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    color: #fff;
}

/* Submenu dark mode */
.home-page header nav ul .submenu {
    background-color: #282828;
    border: 1px solid #444;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.home-page header nav ul .submenu li a {
    color: #ccc;
}

.home-page header nav ul .submenu li a:hover {
    background-color: #ED166C;
    color: #fff;
}

/* ================================
   Hero / Featured Platform
   ================================ */
.home-page .featured-platform {
    background: linear-gradient(180deg, #000 0%, #1e1e1e 100%);
    padding: 80px 40px;
    margin: 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-page .featured-platform .container {
    position: relative;
}

.home-page .featured-platform h2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.home-page .featured-platform p {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.home-page .featured-platform .buttons {
    gap: 1rem;
}

.home-page .featured-platform .btn-primary {
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    box-shadow: none;
    transition: transform 0.2s;
}

.home-page .featured-platform .btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    color: #fff;
    border: none;
}

.home-page .featured-platform .btn-secondary {
    background: #333333;
    border: 1px solid #444;
    color: #ccc;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    margin-left: 0;
    transition: all 0.2s;
}

.home-page .featured-platform .btn-secondary:hover {
    background: #3d3d3d;
    color: #fff;
    transform: translateY(-2px);
}

/* AWS Badge on dark bg */
.home-page .aws-partner-badge span {
    color: #ccc;
    background-color: rgba(40, 40, 40, 0.9);
}

.home-page .aws-partner-badge img {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ================================
   As Seen In
   ================================ */
.home-page .as-seen-in {
    background-color: #1e1e1e;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    margin-bottom: 0;
    padding: 40px 0;
}

.home-page .as-seen-in h2 {
    color: #fff;
}

.home-page .as-seen-in h2:before {
    background: linear-gradient(90deg, rgba(237, 22, 108, 0.1) 0%, #ED166C 50%, rgba(237, 22, 108, 0.1) 100%);
}

.home-page .as-seen-in h2:after {
    background-color: #ED166C;
    border-color: #1e1e1e;
}

.home-page .as-seen-in-logo img {
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
}

.home-page .as-seen-in-logo:hover img {
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
}

.home-page .many-more p {
    color: #ED166C;
    border-bottom-color: rgba(237, 22, 108, 0.5);
}

/* ================================
   Dark-to-Light Transition (before Community)
   ================================ */
.home-page .community-section {
    position: relative;
}

.home-page .community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #1e1e1e, #f8f9fa);
    z-index: 1;
}

/* ================================
   Community Section (Light)
   ================================ */
.home-page .community-section {
    background-color: #f8f9fa;
    padding: 120px 40px 60px;
}

.home-page .community-section > * {
    position: relative;
    z-index: 2;
}

.home-page .community-section h2 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 2.25rem;
    letter-spacing: 0;
}

.home-page .community-section p.subtitle {
    color: #555;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

.home-page .community-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.home-page .community-card:before {
    background: linear-gradient(90deg, #ED166C 0%, #c41058 100%);
}

.home-page .community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.home-page .community-card h3 {
    color: #1a1a1a;
    letter-spacing: 0;
}

.home-page .community-card p {
    color: #555;
    font-weight: 400;
}

.home-page .card-icon {
    background: #ED166C;
    border-radius: 12px;
    width: 60px;
    height: 60px;
}

.home-page .card-icon:before {
    display: none;
}

.home-page .card-icon i {
    color: #fff;
    font-size: 1.5rem;
}

.home-page .community-card:hover .card-icon {
    transform: none;
}

.home-page .community-card:hover .card-icon i {
    color: #fff;
}

.home-page .community-card a.card-button {
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    border-radius: 8px;
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
    padding: 10px 20px;
    letter-spacing: 0;
    transition: transform 0.2s;
}

.home-page .community-card a.card-button:before {
    display: none;
}

.home-page .community-card a.card-button:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

/* ================================
   Light-to-Dark Transition (before Choose Us)
   ================================ */
.home-page .choose-us {
    position: relative;
}

.home-page .choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #f8f9fa, #1e1e1e);
    z-index: 1;
}

/* ================================
   Choose Us / Why Section (Dark)
   ================================ */
.home-page .choose-us {
    background-color: #1e1e1e;
    padding: 120px 40px 60px;
}

.home-page .choose-us > * {
    position: relative;
    z-index: 2;
}

.home-page .choose-us h2 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
}

.home-page .benefits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.home-page .benefit {
    background: #282828;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-page .benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.home-page .benefit h3 {
    color: #fff;
}

.home-page .benefit h3::after {
    background-color: #ED166C;
}

.home-page .benefit p {
    color: #ccc;
}

/* ================================
   Dark-to-Light Transition (before About)
   ================================ */
.home-page .about {
    position: relative;
}

.home-page .about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #1e1e1e, #f8f9fa);
    z-index: 1;
}

/* ================================
   About / Founder Section (Light)
   ================================ */
.home-page .about {
    background-color: #f8f9fa;
    padding: 120px 40px 60px;
}

.home-page .about > * {
    position: relative;
    z-index: 2;
}

.home-page .about h2 {
    color: #1a1a1a;
    font-size: 2.25rem;
}

.home-page .about-content > img {
    border-color: #ED166C;
    box-shadow: 0 5px 20px rgba(237, 22, 108, 0.15);
    border-radius: 12px;
}

.home-page .about-text h3 {
    color: #1a1a1a;
}

.home-page .about-text p {
    color: #555;
}

.home-page .founder-name {
    color: #1a1a1a;
}

.home-page .founder-title {
    color: #555;
}

.home-page .about-text > a {
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    border-radius: 8px;
    box-shadow: none;
    transition: transform 0.2s;
}

.home-page .about-text > a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #c41058 0%, #a00d48 100%);
    box-shadow: none;
    color: #fff;
}

.home-page .founder-social a {
    background-color: #e0e0e0;
    color: #1a1a1a;
}

.home-page .founder-social a:hover {
    background-color: #d0d0d0;
}

/* ================================
   Light-to-Dark Transition (before Posts)
   ================================ */
.home-page .posts {
    position: relative;
}

.home-page .posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #f8f9fa, #1e1e1e);
    z-index: 1;
}

/* ================================
   Posts Section (Dark)
   ================================ */
.home-page .posts {
    background-color: #1e1e1e;
    padding: 120px 40px 60px;
}

.home-page .posts > * {
    position: relative;
    z-index: 2;
}

.home-page .posts h2 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
}

.home-page .post-cards {
    padding: 0;
}

.home-page .post {
    background: #282828;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-page .post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.home-page .post:hover img {
    transform: scale(1.05);
}

.home-page .post h3 {
    color: #fff;
}

.home-page .post p {
    color: #ccc;
}

.home-page .post .read-more {
    color: #ED166C;
}

.home-page .post .read-more:hover {
    color: #c41058;
}

.home-page .post a {
    color: inherit;
}

.home-page .view-all-posts-link {
    color: #ED166C;
}

.home-page .view-all-posts-link:hover {
    color: #fff;
}

/* ================================
   CTA Section (Dark)
   ================================ */
.home-page .cta {
    background: linear-gradient(180deg, #1e1e1e 0%, #000 100%);
    padding: 80px 40px;
    text-align: center;
}

.home-page .cta h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    padding-left: 0;
    max-width: none;
    text-align: center;
}

.home-page .cta p {
    color: #ccc;
    padding-left: 0;
    max-width: 600px;
    margin: 0 auto 32px;
    text-align: center;
}

.home-page .cta .btn {
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    margin-left: 0;
    transition: transform 0.2s;
}

.home-page .cta .btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
    color: #fff;
    border: none;
}

/* ================================
   Footer (Dark)
   ================================ */
.home-page footer {
    background: #000;
    border-top: 1px solid #444;
    color: #888;
}

.home-page footer p {
    color: #888;
}

.home-page footer a {
    color: #888;
    transition: color 0.2s;
}

.home-page .footer-links a:hover {
    color: #ED166C;
    text-decoration: none;
}

.home-page .footer-social h4 {
    color: #fff;
}

.home-page .footer-social .social-links a {
    background: rgba(255, 255, 255, 0.1);
}

.home-page .footer-social .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.home-page .footer-social .social-links i {
    color: #fff;
}

/* ================================
   Reduced Motion
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .home-page * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   Mobile Responsive Overrides
   ================================ */
@media (max-width: 768px) {
    .home-page .featured-platform {
        padding: 40px 20px;
        min-height: auto;
    }

    .home-page .featured-platform h2 {
        font-size: 1.75rem;
    }

    .home-page .featured-platform p {
        font-size: 1rem;
    }

    .home-page .community-section {
        padding: 90px 20px 40px;
    }

    .home-page .choose-us {
        padding: 90px 20px 40px;
    }

    .home-page .about {
        padding: 90px 20px 40px;
    }

    .home-page .posts {
        padding: 90px 20px 40px;
    }

    .home-page .community-section::before,
    .home-page .choose-us::before,
    .home-page .about::before,
    .home-page .posts::before {
        height: 50px;
    }

    .home-page .community-section h2,
    .home-page .choose-us h2,
    .home-page .posts h2,
    .home-page .about h2 {
        font-size: 1.75rem;
    }

    .home-page .cta {
        padding: 40px 20px;
    }

    .home-page .cta h2 {
        font-size: 1.75rem;
    }

    /* Mobile nav dark mode */
    .home-page header nav {
        background: #1e1e1e;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .home-page header nav ul .submenu {
        background-color: #333;
    }

    .home-page header nav ul .submenu li a {
        color: #ccc;
    }

    .home-page header nav ul .submenu li a:hover {
        background-color: #ED166C;
        color: #fff;
    }
}
