/* Re-Cubed V2 Styles - Dark Theme */

:root {
    --primary-color: #1a1a1a;
    --primary-dark: #0a0a0a;
    --primary-light: #2d2d2d;
    --secondary-color: #6b7280;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;
    --text-dark: #111827;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-dark: #1f2937;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 50px 100px rgba(0, 0, 0, 0.25);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.display-3, .display-4, .display-5 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Color Overrides */
.bg-dark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-light {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.border-accent {
    border-color: var(--accent-color) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--text-dark);
    font-weight: 700;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.brand-icon {
    font-size: 1.75rem;
    background: var(--accent-color);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(245,158,11,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-badge .badge {
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
}

.hero-stats {
    margin: 2rem 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 3;
}

.learning-dashboard {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.learning-dashboard:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.dashboard-header {
    background: var(--accent-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.dashboard-nav {
    width: 120px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.dashboard-user {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.dashboard-content {
    padding: 30px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.course-card {
    height: 80px;
    background: #f3f4f6;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.course-card.active {
    background: var(--accent-color);
}

.course-card.progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--success);
}

.progress-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar-demo {
    width: 60%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    position: relative;
}

.progress-bar-demo::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 75%;
    height: 100%;
    background: var(--success);
    border-radius: 4px;
}

.stats-mini {
    width: 30%;
    height: 40px;
    background: #f3f4f6;
    border-radius: 4px;
}

/* Service Cards V2 */
.service-card-v2 {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.service-icon-v2 {
    font-size: 3rem;
    height: 80px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Benefit Items */
.benefit-icon-v2 {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-item {
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
}

/* Comparison Chart */
.comparison-chart {
    border: 2px solid var(--accent-color);
}

.comparison-chart .row {
    margin: 0;
}

.comparison-chart .row + .row {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem 1rem;
}

.process-number {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.process-icon {
    font-size: 3rem;
    margin: 1rem 0;
    display: block;
}

.process-step h4 {
    margin: 1rem 0;
    color: var(--text-dark);
}

/* Hosting Tiers */
.tier-card {
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}

.tier-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tier-card.border-accent {
    border-color: var(--accent-color) !important;
    position: relative;
}

.tier-card.border-accent::after {
    content: 'POPULAR';
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.tier-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Hosting Visual */
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.server-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-layer {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.server-layer:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-color);
}

.server-layer.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-color);
}

.server-icon {
    font-size: 1.5rem;
}

.server-label {
    font-weight: 500;
}

/* Server Description Card */
.server-description-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.server-description-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.server-description-card:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.server-description-card:hover .server-description-icon {
    transform: scale(1.1);
}

/* Portfolio Cards */
.portfolio-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.portfolio-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.portfolio-content h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.portfolio-stats {
    font-size: 0.875rem;
}

/* Contact Methods V2 */
.contact-method-v2 {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-method-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.contact-icon-v2 {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Consultation Form */
.consultation-form {
    border: 2px solid var(--accent-color);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.learning-dashboard {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .learning-dashboard {
        transform: none;
        margin-top: 2rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        margin: 1.5rem 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .service-card-v2, .contact-method-v2 {
        padding: 1.5rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        padding: 20px;
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Focus States */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .hero-visual,
    .server-stack,
    .contact-method-v2 {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    .hero-section,
    .bg-dark {
        background: white !important;
        color: black !important;
    }
}