/* ========================================
   Home Page Styles - TechRepair.Co
   ======================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #00d4ff;
}

.guide-btn {
    margin: 0 24px 24px;
    display: inline-block;
}

.cta-container {
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(15, 20, 30, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: #00d4ff;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
}

/* Sections - Optimized for fast loading */
.section {
    padding: 60px 0;
    position: relative;
    contain: layout style;
}

.section-alt {
    background: linear-gradient(180deg, rgba(15, 20, 30, 0.6) 0%, rgba(15, 20, 30, 0.3) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

/* Loading optimization */
.section::before {
    display: none;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-header p {
    color: #94a3b8;
}

/* Calculator Cards */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.calc-preview-card {
    background: rgba(15, 20, 30, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.calc-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00a8ff);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.calc-preview-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.calc-preview-card:hover::before {
    transform: scaleX(1);
}

.calc-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.calc-preview-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.calc-preview-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.link-arrow {
    color: #00d4ff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-arrow::after {
    content: ' →';
}

/* Guide Cards */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.guide-card {
    background: rgba(15, 20, 30, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.guide-header {
    padding: 24px;
    background: linear-gradient(135deg, #1a2230, #0f1419);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.guide-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #00d4ff, #00a8ff);
    color: #050508;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 12px;
}

.guide-content {
    padding: 24px;
    flex: 1;
}

.guide-content p {
    color: #94a3b8;
    margin-bottom: 16px;
}

.guide-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #64748b;
}

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

.tool-card {
    background: rgba(15, 20, 30, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tool-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(15, 20, 30, 0.9);
    transform: translateY(-3px);
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 168, 255, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.tool-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.tool-info p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Updates */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.update-card {
    background: rgba(15, 20, 30, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.update-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.update-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.update-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.update-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* CTA Section */

/* Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background: rgba(15, 20, 30, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: white;
}

.tab-btn.active {
  background: linear-gradient(135deg, #00d4ff, #00a8ff);
  border-color: transparent;
  color: #050508;
}

/* Level Badges */
.level-beginner {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 8px;
}

.level-intermediate {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 8px;
}

.level-advanced {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 0, 100, 0.15);
  color: #ff0066;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 8px;
}

/* View All Button Container */
.view-all-container {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.cta-text {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Extended */
.footer-extended {
    background: rgba(5, 5, 8, 0.95);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand-text {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #64748b;
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00d4ff;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 24px;
    }
    .calculator-grid,
    .guides-grid {
        grid-template-columns: 1fr;
    }
}
