/* ============================================
   MOBILE-FIRST RESPONSIVE CSS
   Computer Hardware Mohali
   ============================================ */

/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066FF;
    --secondary-color: #00D4FF;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --success-color: #25D366;
    --accent-color: #FF6B35;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

h2 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-dark);
}

h3 {
    font-size: 18px;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
    margin-bottom: 12px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #0052CC;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
}

.btn-text:hover {
    color: var(--primary-color);
}

/* STICKY HEADER */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-menu {
    display: none;
    gap: 24px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.cta-buttons {
    display: none;
    gap: 8px;
}

.cta-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
}

.btn-whatsapp {
    background-color: var(--success-color);
    color: white;
}

.btn-call {
    background-color: var(--primary-color);
    color: white;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 40px 16px;
    text-align: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.trust-badge {
    display: inline-block;
    background-color: #FFF3CD;
    color: #856404;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.hero-subheading {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-buttons .btn {
    width: 100%;
}

.guarantee {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.8;
}

/* SERVICES SECTION */
.services {
    padding: 48px 16px;
    background-color: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* WHY US SECTION */
.why-us {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.why-us-item {
    text-align: center;
    padding: 24px 16px;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.why-us-item:hover {
    background-color: #E3F2FD;
}

.why-us-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.why-us-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.why-us-item p {
    font-size: 13px;
}

/* PROCESS SECTION */
.process {
    padding: 48px 16px;
    background-color: var(--bg-light);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.process-arrow {
    display: none;
    text-align: center;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.process-step {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 12px;
}

.process-step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13px;
}

/* REVIEWS SECTION */
.reviews {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.review-card {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.stars {
    color: #FFB800;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.6;
}

.reviewer-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.review-meta {
    font-size: 12px;
    color: var(--primary-color);
}

/* CONTACT SECTION */
.contact {
    padding: 48px 16px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 212, 255, 0.08) 100%);
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-method {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.contact-method h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-method p {
    font-size: 13px;
    margin-bottom: 16px;
}

.contact-method .btn {
    width: 100%;
}

/* FOOTER */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 16px 16px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: white;
}

.footer-section p {
    font-size: 13px;
    color: #CCCCCC;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--secondary-color);
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #CCCCCC;
    margin-bottom: 8px;
}

/* FLOATING WHATSAPP BUTTON */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0.2), var(--shadow-lg);
    }
}

/* INSTALL PROMPT */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 350px;
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.install-prompt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.install-prompt-content svg {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.install-prompt-content h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.install-prompt-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.install-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.install-buttons .btn {
    flex: 1;
}

/* ============================================
   TABLET & DESKTOP RESPONSIVE (768px+)
   ============================================ */

@media (min-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .header-container {
        padding: 16px 24px;
    }

    .logo span {
        font-size: 18px;
    }

    .nav-menu {
        display: flex;
        flex: 1;
        margin: 0 24px;
    }

    .cta-buttons {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .hero {
        padding: 60px 24px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-subheading {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: auto;
    }

    .services {
        padding: 60px 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-us {
        padding: 60px 24px;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .why-us-item {
        padding: 32px 24px;
    }

    .process {
        padding: 60px 24px;
    }

    .process-steps {
        display: flex;
        grid-template-columns: unset;
        gap: 0;
        max-width: 100%;
    }

    .process-step {
        flex: 1;
        margin: 0 8px;
    }

    .process-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        flex-shrink: 0;
    }

    .reviews {
        padding: 60px 24px;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact {
        padding: 60px 24px;
    }

    .contact-methods {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .floating-whatsapp {
        bottom: 30px;
        right: 30px;
        width: 64px;
        height: 64px;
    }

    .install-prompt {
        left: auto;
        right: 30px;
        bottom: 30px;
        max-width: 380px;
    }
}

/* ============================================
   LARGE DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .sticky-header,
    .floating-whatsapp,
    .install-prompt {
        display: none;
    }

    body {
        background-color: white;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #E8E8E8;
        --text-light: #B0B0B0;
        --bg-light: #1E1E1E;
        --bg-white: #2D2D2D;
        --border-color: #404040;
    }

    .trust-badge {
        background-color: #332701;
        color: #FFD966;
    }

    .service-card,
    .process-step,
    .contact-method,
    .install-prompt {
        background-color: var(--bg-white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .why-us-item {
        background-color: var(--bg-light);
    }

    .why-us-item:hover {
        background-color: #3A4555;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce motion for animations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading images */
img[loading="lazy"] {
    background-color: var(--bg-light);
}

/* Optimize font loading */
@font-face {
    font-family: system-ui;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }
.visible { display: block !important; }
