/* ==============================================================================
    HOME PAGE STYLESHEET - COMPLETE MOBILE OPTIMIZED
    - Modern Dark Theme with Electric Energy Accents
    - Enhanced Readability and Visual Hierarchy
    - Smooth Animations and Hover Effects
    - Fully Responsive Design with Mobile Centering Fixes
    ============================================================================== */

/* ==============================================================================
    BASE MOBILE FIXES
    ============================================================================== */

/* Better box-sizing for all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
.hero-section, .features {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure all text wraps properly */
h1, h2, h3, h4, h5, h6, p, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==============================================================================
    HERO SECTION
    ============================================================================== */

.hero-section {
    width: 100%;
    padding: 100px 20px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

/* Animated electric grid background effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            linear-gradient(90deg, rgba(255, 193, 7, 0.03) 1px, transparent 1px),
            linear-gradient(rgba(255, 193, 7, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-flow 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.hero-text-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    position: relative;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 193, 7, 0.1);
    backdrop-filter: blur(10px);
}

/* Subtle electric glow pulse (more refined) */
.hero-text-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffc107, #007bff, #ffc107);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    animation: border-pulse 3s ease-in-out infinite;
}

@keyframes border-pulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.6; }
}

.hero-text-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    font-family: 'Oswald', 'Impact', sans-serif;
    letter-spacing: 3px;
    line-height: 1.1;
    position: relative;
    word-wrap: break-word;
}

/* Refined text shadow for depth without overdoing it */
.hero-text-content h1::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(45deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.3;
}

.hero-text-content .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced button styling */
.hero-text-content .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.hero-text-content .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-text-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
}

.hero-text-content .btn-primary:hover::before {
    left: 100%;
}

/* ==============================================================================
    FEATURES SECTION
    ============================================================================== */

.features {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a1a2e;
    font-family: 'Oswald', 'Impact', sans-serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Underline accent effect */
.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #007bff);
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual Feature Cards */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Accent bar on top */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #007bff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow:
            0 20px 40px rgba(0, 123, 255, 0.15),
            0 0 0 2px rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.2);
}

/* Card Icons/Emoji Styling */
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
    word-wrap: break-word;
}

/* Make emojis larger and more prominent */
.feature-card h3::before {
    content: attr(data-icon);
    font-size: 2rem;
    filter: grayscale(0);
    transition: transform 0.3s ease;
}

.feature-card:hover h3::before {
    transform: scale(1.2) rotate(5deg);
}

.feature-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.feature-card a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.feature-card a::after {
    content: '→';
    transition: transform 0.3s ease;
}

.feature-card a:hover {
    color: #0056b3;
    gap: 10px;
}

.feature-card a:hover::after {
    transform: translateX(5px);
}

/* ==============================================================================
    RESPONSIVE DESIGN - ENHANCED MOBILE SUPPORT
    ============================================================================== */

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 15px;
    }

    .hero-text-content {
        padding: 50px 25px;
        border-radius: 16px;
        margin: 0 5px; /* Add small margin on sides */
    }

    .hero-text-content h1 {
        letter-spacing: 2px;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-text-content .lead {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .features {
        padding: 60px 15px;
    }

    .features h2 {
        margin-bottom: 40px;
    }

    .feature-grid {
        padding: 0 10px;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 10px;
    }

    .hero-text-content {
        padding: 40px 20px;
        margin: 0;
    }

    .hero-text-content h1 {
        letter-spacing: 1px;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero-text-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-text-content .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .features {
        padding: 50px 10px;
    }

    .feature-grid {
        padding: 0 5px;
    }

    .feature-card {
        padding: 25px 15px;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .hero-section {
        padding: 40px 8px;
    }

    .hero-text-content {
        padding: 30px 15px;
        border-radius: 12px;
    }

    .hero-text-content h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .hero-text-content .lead {
        font-size: 0.95rem;
    }

    .hero-text-content .btn-primary {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .features {
        padding: 40px 8px;
    }

    .feature-grid {
        gap: 15px;
    }

    .feature-card {
        padding: 20px 12px;
    }

    .feature-card h3 {
        font-size: 1.2rem;
        gap: 8px;
    }

    .feature-card h3::before {
        font-size: 1.6rem;
    }
}

/* ==============================================================================
    UTILITY CLASSES
    ============================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Prevent images from overflowing */
img {
    max-width: 100%;
    height: auto;
}