/**
 * Sections - Stargaze Theme Components
 * 
 * All section-specific styles for the homepage
 * Follows the Orvit-Cosmos animation system (data-animate)
 * 
 * @package Orvit_Cosmos
 * @since 1.0.0
 */

/* ============================================================================
   SHARED SECTION STYLES
   ========================================================================= */

.stargaze-section {
    position: relative;
    padding: var(--section-gap) 0;
    background-color: var(--stargaze-dark);
    overflow: hidden;
}

.stargaze-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.section-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--stargaze-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-title .text-gradient {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================================
   SERVICES INTRO SECTION
   ========================================================================= */

.services-intro {
    background: linear-gradient(180deg, var(--stargaze-darker) 0%, var(--stargaze-dark) 100%);
}

.services-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-number {
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: 900;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.9;
    opacity: 0.3;
    user-select: none;
}

.services-intro-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
}

.services-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}

.services-features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.services-features-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 1.25rem;
    min-width: 2rem;
}

@media (max-width: 1024px) {
    .services-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .services-number {
        font-size: 8rem;
    }
}

/* ============================================================================
   SERVICES CARDS SECTION
   ========================================================================= */

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.service-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-8px);
    box-shadow: var(--glow-card);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-cosmic);
    border-radius: 100px;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card-title a:hover {
    color: var(--stargaze-cyan);
}

.service-card-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--stargaze-cyan);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-card-link:hover {
    gap: 0.75rem;
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-card-link:hover svg {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-cards-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }
}

/* ============================================================================
   TECHNOLOGIES GRID SECTION
   ========================================================================= */

.tech-section {
    background: var(--stargaze-darker);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tech-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--stargaze-cyan);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

.tech-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: 1rem;
    transition: all 0.4s ease;
}

.tech-card:hover .tech-card-icon {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-cyan);
}

.tech-card-icon img,
.tech-card-icon svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-card {
        flex-direction: row;
        text-align: left;
        padding: 1.5rem;
    }

    .tech-card-icon {
        width: 48px;
        height: 48px;
    }

    .tech-card-icon img,
    .tech-card-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================================================
   LANDING CTA SECTION
   ========================================================================= */

.landing-cta {
    position: relative;
    background: linear-gradient(135deg, var(--stargaze-darker) 0%, #1a0a2e 100%);
    text-align: center;
    padding: 6rem 0;
}

.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(123, 47, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.landing-cta-content {
    position: relative;
    z-index: 1;
}

.landing-cta-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.landing-cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ============================================================================
   BLOG GRID SECTION
   ========================================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-card);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-card-category {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--stargaze-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--stargaze-cyan);
}

.blog-card-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-view-all {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   CLIENTS SECTION
   ========================================================================= */

.clients-section {
    background: var(--stargaze-dark);
    padding: 5rem 0;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem 4rem;
}

.client-logo {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ============================================================================
   FOOTER STARGAZE STYLES
   ========================================================================= */

.site-footer {
    background: var(--stargaze-darker);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 0;
}

.footer-cta {
    background: var(--gradient-cosmic);
    padding: 4rem 0;
    text-align: center;
    border-radius: 2rem 2rem 0 0;
    margin-bottom: 4rem;
}

.footer-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-cta .orvit-btn {
    background: #ffffff;
    color: var(--stargaze-purple);
}

.footer-cta .orvit-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-nav-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 0.75rem;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-nav-list a:hover {
    color: var(--stargaze-cyan);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--stargaze-cyan);
    border-color: var(--stargaze-cyan);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    font-size: 0.875rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-legal a:hover {
    color: var(--stargaze-cyan);
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 0.75rem;
    }
}

/* ============================================================================
   BUTTONS - STARGAZE ENHANCED
   ========================================================================= */

.orvit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
}

.orvit-btn-primary {
    background: var(--gradient-cosmic);
    color: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(123, 47, 247, 0.5);
}

.orvit-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(123, 47, 247, 0.6);
}

.orvit-btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #ffffff;
}

.orvit-btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--stargaze-cyan);
}

.orvit-btn-icon {
    display: flex;
    transition: transform 0.3s ease;
}

.orvit-btn:hover .orvit-btn-icon {
    transform: translateX(4px);
}

/* ============================================================================
   ANIMATION STATES
   ========================================================================= */

[data-animate] {
    opacity: 0;
}

[data-animate].is-visible,
[data-animate].has-animated {
    opacity: 1;
}