/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

body.loading {
    overflow: hidden;
}

body.loading .navbar,
body.loading .chat-widget {
    display: none;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loader-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-icon {
    transform: rotate(15deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-suffix {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login {
    padding: 8px 20px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

.btn-signup {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(ellipse at center, #0f1419 0%, #000000 100%);
}

.matrix-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

#matrixCanvas {
    width: 100%;
    height: 100%;
}

.circuit-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circuit-board {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chip {
    position: absolute;
    border: 2px solid #00ff41;
    border-radius: 4px;
    animation: chipGlow 3s ease-in-out infinite;
}

.cpu {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 10%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    animation-delay: 0s;
}

.gpu {
    width: 60px;
    height: 30px;
    top: 40%;
    right: 15%;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    animation-delay: 1s;
}

.ram {
    width: 80px;
    height: 15px;
    bottom: 25%;
    left: 20%;
    background: linear-gradient(45deg, #4169e1, #1e3c72);
    animation-delay: 2s;
}

.led {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: ledBlink 1s ease-in-out infinite;
}

.led:nth-child(7) {
    top: 25%;
    left: 25%;
    background: #ff0040;
    box-shadow: 0 0 10px #ff0040;
}

.led:nth-child(8) {
    bottom: 35%;
    right: 30%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation-delay: 0.5s;
}

@keyframes ledBlink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.trace {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: traceFlow 4s linear infinite;
}

.trace:nth-child(9) {
    top: 30%;
    left: 15%;
    width: 120px;
    transform: rotate(15deg);
}

.trace:nth-child(10) {
    top: 55%;
    right: 20%;
    width: 100px;
    transform: rotate(-25deg);
    animation-delay: 1.5s;
}

.trace:nth-child(11) {
    bottom: 40%;
    left: 30%;
    width: 80px;
    transform: rotate(45deg);
    animation-delay: 3s;
}

@keyframes traceFlow {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

.hud-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.system-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff41;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #00ff41;
    border-radius: 5px;
    animation: hudGlow 2s ease-in-out infinite;
}

.status-line {
    margin-bottom: 5px;
}

.status-ok {
    color: #00ff88;
    text-shadow: 0 0 5px #00ff88;
}

.temp {
    color: #ff6b35;
    animation: tempFlicker 3s ease-in-out infinite;
}

@keyframes tempFlicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes hudGlow {

    0%,
    100% {
        box-shadow: 0 0 5px #00ff41;
    }

    50% {
        box-shadow: 0 0 15px #00ff41;
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.hex-stream {
    position: absolute;
    top: 35%;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #ff6b35;
    white-space: nowrap;
    animation: hexFlow 12s linear infinite;
    opacity: 0.6;
}

@keyframes hexFlow {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes chipGlow {

    0%,
    100% {
        box-shadow: 0 0 5px #00ff41;
        opacity: 0.7;
    }

    50% {
        box-shadow: 0 0 20px #00ff41, 0 0 30px #00ff41;
        opacity: 1;
    }
}

.resistor {
    position: absolute;
    width: 30px;
    height: 8px;
    background: repeating-linear-gradient(90deg,
            #ff6b35 0px,
            #ff6b35 6px,
            #000 6px,
            #000 12px);
    border-radius: 4px;
    animation: resistorPulse 2s linear infinite;
}

.resistor:nth-child(4) {
    top: 30%;
    left: 30%;
    transform: rotate(45deg);
}

.resistor:nth-child(5) {
    bottom: 40%;
    right: 25%;
    transform: rotate(-30deg);
}

@keyframes resistorPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.capacitor {
    position: absolute;
    width: 15px;
    height: 25px;
    background: linear-gradient(to bottom, #4169e1, #1e3c72);
    border-radius: 50% 50% 0 0;
    top: 60%;
    right: 40%;
    animation: capacitorCharge 4s ease-in-out infinite;
}

@keyframes capacitorCharge {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.5);
    }
}

.data-stream {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.binary {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff41;
    white-space: nowrap;
    animation: binaryFlow 15s linear infinite;
    opacity: 0.4;
}

.binary:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.binary:nth-child(2) {
    top: 50%;
    animation-delay: 5s;
}

.binary:nth-child(3) {
    top: 80%;
    animation-delay: 10s;
}

@keyframes binaryFlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.7);
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: slideUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: slideUp 1s ease 0.2s both;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideUp 1s ease 0.4s both;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    animation: slideUp 1s ease 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.2rem;
    color: var(--warning-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease 0.8s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.btn-call {
    background: var(--success-color);
    color: white;
}

.btn-call:hover {
    background: #059669;
}

/* Sections */
section {
    padding: 100px 0;
}

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

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Services Section */
.services {
    background: var(--bg-secondary) !important;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    padding: 100px 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.services .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services .section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 1 !important;
    visibility: visible !important;
}

.services .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary) !important;
}

.services .section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary) !important;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
}

.service-card {
    background: var(--bg-card) !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    width: 100%;
    min-height: 400px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

.service-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--success-color);
    font-size: 0.8rem;
}

/* About Section */
.about {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about .container {
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.about-description p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

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

.certifications h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.professional-certs {
    margin-top: 30px;
}

.professional-certs h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.cert-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.cert-item span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Warranty Section */
.warranty {
    background: var(--bg-primary);
    padding: 100px 0;
}

.warranty-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border-radius: 15px;
}

.warranty-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.warranty-icon i {
    font-size: 2.5rem;
}

.warranty-hero h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.warranty-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.warranty-card.covered {
    border-left: 5px solid var(--success-color);
}

.warranty-card.not-covered {
    border-left: 5px solid var(--danger-color);
}

.warranty-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.warranty-card.covered h4 i {
    color: var(--success-color);
}

.warranty-card.not-covered h4 i {
    color: var(--danger-color);
}

.warranty-card ul {
    list-style: none;
}

.warranty-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.warranty-card li:last-child {
    border-bottom: none;
}

.warranty-process h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

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

.step {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

/* Tech Tips Section */
.tech-tips {
    background: var(--bg-secondary);
    padding: 100px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tip-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tip-icon i {
    font-size: 1.5rem;
    color: white;
}

.tip-card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.tip-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.tip-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.tip-card li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tip-action {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin: 0;
    border-left: 4px solid var(--primary-color);
}

.tips-cta {
    text-align: center;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tips-cta h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.tips-cta p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .warranty-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
}

.about-image:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.play-button i {
    font-size: 2rem;
}

.image-overlay:hover .play-button {
    transform: scale(1.1);
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-secondary) !important;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    padding: 100px 0;
}

.portfolio .container {
    width: 100%;
}

.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
    opacity: 1 !important;
    visibility: visible !important;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-tags span {
    background: rgba(37, 99, 235, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.testimonials .container {
    width: 100%;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    display: none;
    text-align: center;
    padding: 40px;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.stars {
    margin-bottom: 20px;
}

.stars i {
    color: #fbbf24;
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* FAQ Section */
.faq {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.faq .container {
    width: 100%;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 20px 25px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Emergency Service Section */
.emergency {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.emergency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.emergency-content {
    position: relative;
    z-index: 2;
}

.emergency-header {
    text-align: center;
    margin-bottom: 60px;
}

.emergency-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.emergency-icon i {
    font-size: 2.5rem;
    color: #fbbf24;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.emergency-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.emergency-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.emergency-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.emergency-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.emergency-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.emergency-card p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 20px;
}

.emergency-number a {
    color: #fbbf24;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.guarantee-badge,
.pickup-time {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.emergency-pricing {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 50px;
}

.emergency-pricing h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #fbbf24;
}

.service-name {
    font-weight: 500;
}

.price {
    font-weight: 700;
    color: #fbbf24;
}

.emergency-cta {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 40px;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

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

.btn-emergency {
    background: #fbbf24;
    color: #1f2937;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: glow 2s infinite;
}

.btn-emergency:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-whatsapp-emergency {
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp-emergency:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
    }
}

@media (max-width: 768px) {
    .emergency-header h2 {
        font-size: 2rem;
    }

    .emergency-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.contact .container {
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 25px;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #d1d5db;
}

.footer-contact i {
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-toggle {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.chat-widget.open .chat-toggle {
    transform: rotate(180deg);
}

.chat-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-widget.open .chat-body {
    max-height: 400px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
}

.bot-message {
    background: var(--bg-secondary);
    color: var(--text-primary);
    margin-right: auto;
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--secondary-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

body.modal-open {
    overflow: hidden !important;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 2% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    position: relative;
    animation: modalSlide 0.3s ease;
    box-shadow: var(--shadow-lg);
    will-change: transform;
}

#serviceModalContent {
    max-height: 80vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.service-detail {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
}

.service-detail img {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.service-detail h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.service-detail h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-detail h4:before {
    content: '🔧';
    font-size: 1.1rem;
}

.service-detail ul {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.service-detail li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-detail li i {
    color: var(--success-color);
    font-weight: bold;
}

.service-pricing {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid var(--primary-color);
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    position: relative;
}

.service-pricing:before {
    content: '💰';
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--bg-card);
    padding: 5px 10px;
    font-size: 1.2rem;
}

.service-pricing h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.service-pricing p {
    margin: 8px 0;
    font-weight: 600;
}

.service-warranty {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    position: relative;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.service-warranty:before {
    content: '✅';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.service-warranty h4 {
    color: white;
    margin-top: 0;
}

.service-warranty p {
    margin: 8px 0;
    font-weight: 500;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: var(--text-primary);
}

.modal h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chat-widget {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

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

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

/* Interactive Tools Section */
.interactive-tools {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.tool-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.tool-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2563eb;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-button {
    color: #1d4ed8;
}

/* Language Toggle */
.language-toggle {
    margin-right: 20px;
}

.language-toggle button {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 25px;
    padding: 8px 15px;
    color: #2563eb;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-toggle button:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Advanced Tool Modals */
.tool-modal .modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Tab System */
.builder-tabs,
.diagnostic-tabs,
.calc-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content,
.diag-content,
.calc-content {
    display: none;
}

.tab-content.active,
.diag-content.active,
.calc-content.active {
    display: block;
}

/* PC Builder Advanced */
.component-selector {
    display: grid;
    gap: 20px;
}

.component-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.component-row label {
    font-weight: 600;
    color: #374151;
}

.component-row select {
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
}

.compatibility-checker,
.performance-analyzer,
.pricing-summary {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    min-height: 300px;
}

.compatibility-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
}

.compatibility-result.compatible {
    background: #dcfce7;
    color: #166534;
}

.compatibility-result.incompatible {
    background: #fef2f2;
    color: #dc2626;
}

.compatibility-result.warning {
    background: #fef3c7;
    color: #d97706;
}

/* Diagnostic Tool Advanced */
.symptom-checklist,
.problems-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.symptom-checklist label,
.problems-checklist label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.symptom-checklist label:hover,
.problems-checklist label:hover {
    border-color: #2563eb;
    background: #f0f9ff;
}

.symptom-checklist input:checked+span,
.problems-checklist input:checked+span {
    color: #2563eb;
    font-weight: 600;
}

.hardware-tests,
.software-scans {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.test-item,
.scan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.test-result,
.scan-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
}

.test-result.pass,
.scan-result.clean {
    background: #dcfce7;
    color: #166534;
}

.test-result.fail,
.scan-result.infected {
    background: #fef2f2;
    color: #dc2626;
}

.test-result.warning,
.scan-result.warning {
    background: #fef3c7;
    color: #d97706;
}

.test-result.running,
.scan-result.scanning {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Calculator Advanced */
.device-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.problem-category {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.problem-category h4 {
    color: #2563eb;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.services-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.urgency-selector {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.urgency-selector h4 {
    margin-bottom: 15px;
    color: #374151;
}

.cost-breakdown {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cost-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2563eb;
}

.progress-indicator {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.diagnostic-report {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.report-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.report-section h4 {
    color: #2563eb;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.severity-high {
    border-left: 5px solid #dc2626;
}

.severity-medium {
    border-left: 5px solid #d97706;
}

.severity-low {
    border-left: 5px solid #059669;
}

.performance-chart {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.chart-label {
    width: 120px;
    font-weight: 600;
    color: #374151;
}

.chart-progress {
    flex: 1;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 10px;
    transition: width 1s ease;
}

.chart-value {
    font-weight: 600;
    color: #2563eb;
}

@media (max-width: 768px) {
    .tool-modal .modal-content {
        max-width: 95%;
        margin: 5% auto;
    }

    .component-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .builder-tabs,
    .diagnostic-tabs,
    .calc-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Responsive Design for Tools */
@media (max-width: 768px) {
    .language-toggle {
        display: none;
    }

    .cost-calculator {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Base Styles - Essential for functionality */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--danger-color);
    text-decoration: none;
    cursor: pointer;
}

/* Tool Modals Specifics */
.tool-modal .modal-content {
    width: 90%;
    max-width: 1000px;
}

/* Allow scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: 17px;
    /* Prevent layout shift */
}

/* Typing Animation */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}