/* Hover Expand Style - Website 166
   Theme: Orange-red #dc2626
   Layout: Hover-to-expand cards with 3D flip effects
*/

:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #f87171;
    --accent-color: #ef4444;
    --text-primary: #fef2f2;
    --text-secondary: #fecaca;
    --bg-dark: #1f0505;
    --bg-light: #450a0a;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--bg-light) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Expanding Grid Background */
.expand-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.expand-cell {
    position: absolute;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: all 0.5s ease;
}

.expand-cell:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.1);
    z-index: 1;
}

/* Navigation */
.expand-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(31, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary-light);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-light);
    background: rgba(220, 38, 38, 0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-content { padding-top: 70px; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-content { max-width: 900px; position: relative; z-index: 1; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(220, 38, 38, 0.5);
}

.btn-secondary:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: translateY(-3px);
}

/* Section Styles */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 20px auto 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.expand-card {
    background: rgba(69, 10, 10, 0.6);
    border-radius: 16px;
    padding: 35px 30px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.expand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expand-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.3);
}

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

.expand-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    display: block;
    transition: transform 0.4s ease;
}

.expand-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.expand-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary-light);
    transition: transform 0.4s ease;
}

.expand-card:hover h3 {
    transform: translateX(5px);
}

.expand-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(31, 5, 5, 0.6);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-item:hover {
    background: rgba(69, 10, 10, 0.6);
    border-left-color: var(--primary-color);
    transform: translateX(10px) scale(1.02);
}

.feature-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-content p { color: var(--text-secondary); line-height: 1.6; }

/* Stats Section */
.stats-section {
    background: rgba(31, 5, 5, 0.8);
    padding: 60px 20px;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item { padding: 20px; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.stat-label { font-size: 1.05rem; color: var(--text-secondary); }

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    background: rgba(69, 10, 10, 0.5);
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.process-step:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(69, 10, 10, 0.8);
    border-color: var(--primary-light);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
    transition: transform 0.4s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1) rotate(10deg);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.process-step p { color: var(--text-secondary); line-height: 1.6; }

/* Contact Section */
.contact-section {
    background: rgba(31, 5, 5, 0.6);
    padding: 80px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(69, 10, 10, 0.6);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.3);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    display: block;
    transition: transform 0.4s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--primary-light);
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-card .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Footer */
.expand-footer {
    background: rgba(31, 5, 5, 0.9);
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.expand-footer p { color: var(--text-secondary); }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(31, 5, 5, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-150%);
        transition: transform 0.4s ease;
    }

    .nav-links.active { transform: translateY(0); }
    .menu-toggle { display: flex; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-title { font-size: 1.8rem; }
    .features-list { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
}

/* Page Header */
.page-header {
    padding: 80px 20px 50px;
    text-align: center;
    background: rgba(31, 5, 5, 0.6);
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 900px) { .two-column { grid-template-columns: 1fr; gap: 30px; } }

.column-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.column-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.column-image { display: flex; justify-content: center; align-items: center; }

.expand-box {
    width: 280px;
    height: 280px;
    background: rgba(69, 10, 10, 0.5);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s ease;
}

.expand-box:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.4);
}

.expand-box::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.expand-box:hover::before {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.info-box {
    background: rgba(220, 38, 38, 0.15);
    border-left: 4px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}

.info-box h4 { color: var(--primary-light); margin-bottom: 8px; font-size: 1.05rem; }
.info-box p { margin: 0; color: var(--text-secondary); }

.icon-list { list-style: none; }

.icon-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.icon-list li:last-child { border-bottom: none; }
.icon-list li::before { content: '→'; color: var(--primary-light); font-weight: bold; }
