/**
 * features-pages.css - Unified styling for all feature pages
 * Applies modern homepage styling to feature pages
 */

/* =============================================================================
   GLOBAL PAGE STYLES
   ============================================================================= */

html.features-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
}

body.features-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
    background: #000 !important;
    color: #fff !important;
}

/* Animated gradient background */
body.features-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #000000 0%, #050a14 25%, #0a1428 50%, #050a14 75%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@-webkit-keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
.features-page .container,
.features-page .feature-content,
.features-page .features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .features-page .container,
    .features-page .feature-content,
    .features-page .features-section {
        padding: 0 20px;
    }
}

/* =============================================================================
   HERO SECTIONS
   ============================================================================= */

.about-hero,
.feature-hero {
    margin-top: 110px;
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.about-hero h1,
.feature-hero h1 {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--primary-bright, #00a6cc);
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-hero p,
.feature-hero p {
    color: #bbb;
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .about-hero h1,
    .feature-hero h1 {
        font-size: 2.2em;
    }
    
    .about-hero p,
    .feature-hero p {
        font-size: 1.1em;
    }
}

/* =============================================================================
   FEATURE CARDS & CONTENT
   ============================================================================= */

.features-section {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features-title {
    text-align: center;
    font-size: 2.4em;
    font-weight: 600;
    margin-bottom: 48px;
    color: var(--accent-orange, #ff6d00);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(24, 28, 28, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 220px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-bright, #00a6cc), var(--accent-orange, #ff6d00));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 166, 204, 0.2);
    border-color: rgba(0, 166, 204, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.4em;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-card p {
    color: #ccc;
    font-size: 1.05em;
    line-height: 1.6;
    flex-grow: 1;
}

.feature-card a {
    color: var(--primary-bright, #00a6cc);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.feature-card a:hover {
    color: var(--accent-orange, #ff6d00) !important;
}

/* Feature Description Boxes */
.feature-description {
    background: rgba(24, 28, 28, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.feature-description h2 {
    color: var(--accent-orange, #ff6d00);
    font-size: 2em;
    margin-bottom: 24px;
    font-weight: 600;
}

.feature-description h3 {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.5em;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-description p {
    color: #ccc;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-description ul {
    color: #ccc;
    font-size: 1.05em;
    line-height: 1.8;
    padding-left: 24px;
    margin-bottom: 20px;
}

.feature-description li {
    margin-bottom: 12px;
}

.feature-description strong {
    color: var(--primary-bright, #00a6cc);
    font-weight: 600;
}

/* =============================================================================
   VIDEO PLACEHOLDERS
   ============================================================================= */

.video-placeholder {
    background: rgba(34, 34, 34, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 40px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.video-placeholder:hover {
    border-color: rgba(0, 166, 204, 0.3);
    background: rgba(34, 34, 34, 0.6);
}

.video-placeholder i {
    font-size: 3.5em;
    color: var(--primary-bright, #00a6cc);
    margin-bottom: 24px;
    display: block;
}

.video-placeholder h3 {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.6em;
    margin-bottom: 12px;
    font-weight: 600;
}

.video-placeholder p {
    color: #bbb;
    font-size: 1.1em;
    line-height: 1.6;
}

/* =============================================================================
   BACK LINK
   ============================================================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-bright, #00a6cc);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0, 166, 204, 0.05);
    border: 1px solid rgba(0, 166, 204, 0.2);
}

.back-link:hover {
    color: var(--accent-orange, #ff6d00);
    text-decoration: none;
    background: rgba(255, 109, 0, 0.05);
    border-color: rgba(255, 109, 0, 0.2);
    transform: translateX(-4px);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-4px);
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .features-title {
        font-size: 1.8em;
        margin-bottom: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-description {
        padding: 28px 24px;
    }
    
    .feature-description h2 {
        font-size: 1.6em;
    }
    
    .video-placeholder {
        padding: 60px 24px;
    }
    
    .video-placeholder i {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .about-hero,
    .feature-hero {
        margin-top: 90px;
        margin-bottom: 40px;
    }
    
    .features-section {
        margin-bottom: 60px;
    }
}
