/* ===========================
   GIGNOVA - ULTRA OPTIMIZED CSS
   Performance Focused for Low-End Devices
   =========================== */


/* ===========================
   RESET & BASE
   =========================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: #080C14;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Hide scrollbar on mobile */

@media (max-width: 768px) {
    body::-webkit-scrollbar {
        display: none;
    }
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}


/* ===========================
   CUSTOM CURSOR (Desktop Only)
   =========================== */

.cursor-dot,
.cursor-outline {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: transform;
}

@media (min-width: 769px) {
    body {
        cursor: none;
    }
    .cursor-dot,
    .cursor-outline {
        display: block;
    }
    .cursor-dot {
        width: 8px;
        height: 8px;
        background-color: #06B6D4;
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
    }
    .cursor-outline {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(6, 182, 212, 0.5);
        transition: all 0.15s ease;
    }
}


/* ===========================
   PRELOADER
   =========================== */

.loader {
    position: fixed;
    inset: 0;
    background: #080C14;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ===========================
   CANVAS PARTICLES
   =========================== */

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* ===========================
   GLASSMORPHISM - Optimized
   =========================== */

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.nav-glass {
    background: rgba(8, 12, 20, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


/* ===========================
   TEXT GRADIENT
   =========================== */

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ===========================
   GLOW EFFECTS - Reduced for Performance
   =========================== */

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    will-change: opacity;
}

.glow-accent {
    position: absolute;
    right: 0;
    top: 0;
    width: 33%;
    height: 33%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

.glow-primary {
    position: absolute;
    left: 0;
    top: 50%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    filter: blur(120px);
    pointer-events: none;
}

.glow-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}


/* Remove pulse animation for performance */

@media (prefers-reduced-motion: no-preference) {
    .glow-effect {
        animation: pulse-slow 4s ease-in-out infinite;
    }
}

@keyframes pulse-slow {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}


/* ===========================
   BUTTONS - Optimized
   =========================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #ffffff;
    color: #080C14;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gradient:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: #ffffff;
    color: #080C14;
    font-weight: 800;
    font-size: 1.125rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

.btn-primary-large:hover {
    background: #e5e7eb;
    transform: translateY(-3px);
}

.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* ===========================
   MOBILE MENU
   =========================== */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #3B82F6;
    transform: translateX(10px);
}


/* ===========================
   SERVICE CARDS - Lighter Transforms
   =========================== */

.service-card {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease;
}

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

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-item span:first-child {
    color: #e5e7eb;
    font-size: 0.95rem;
}

.pricing-item span:last-child {
    color: #3B82F6;
    font-weight: 700;
    font-size: 1.1rem;
}

.service-link {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: white !important;
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    padding: 0.5rem 1rem;
    background: #06B6D4;
    color: #080C14;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
}


/* ===========================
   PORTFOLIO CARDS
   =========================== */

.portfolio-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
}

.portfolio-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
}

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

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #080C14 0%, transparent 100%);
    opacity: 0.8;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


/* ===========================
   PROCESS SECTION
   =========================== */

.process-step {
    text-align: center;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.process-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.process-step:hover .process-number {
    transform: scale(1.1);
}


/* ===========================
   FAQ ACCORDION
   =========================== */

.faq-item {
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    color: #3B82F6;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: #9ca3af;
}


/* ===========================
   CTA SECTION
   =========================== */

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.05), rgba(168, 85, 247, 0.1));
    pointer-events: none;
}


/* ===========================
   ABOUT SECTION
   =========================== */

.about-avatar {
    width: 128px;
    height: 128px;
    margin: 0 auto 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    padding: 4px;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: #080C14;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.payment-method {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ===========================
   CONTACT SECTION
   =========================== */

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.contact-link:hover .contact-icon {
    background: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

.contact-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

.contact-link:hover .contact-value {
    color: #3B82F6;
}


/* ===========================
   CONTACT FORM
   =========================== */

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    background: #080C14;
}

.form-group textarea {
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: white;
    color: #080C14;
    font-weight: 800;
    font-size: 1.25rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.btn-submit:hover {
    background: #3B82F6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-result {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    margin-top: 1rem;
    min-height: 1.5rem;
}


/* ===========================
   FOOTER
   =========================== */

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #06B6D4;
    color: white;
    transform: translateY(-3px);
}


/* ===========================
   WHATSAPP & BACK TO TOP
   =========================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 99;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 98;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}


/* Mobile adjustments */

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 6rem;
    }
    .form-group input,
    .form-group textarea {
        padding: 1rem;
    }
}


/* ===========================
   SCROLLBAR
   =========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #080C14;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3B82F6, #06B6D4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #0891b2);
}


/* ===========================
   SELECTION
   =========================== */

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}


/* ===========================
   PERFORMANCE OPTIMIZATIONS
   =========================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* GPU Acceleration */

.service-card,
.portfolio-card,
.process-step,
.cursor-dot,
.cursor-outline {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* Loading Skeleton */

img[data-src],
img[loading="lazy"] {
    background: linear-gradient(90deg, #1a1f2e 25%, #242936 50%, #1a1f2e 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


/* Disable expensive effects on mobile */

@media (max-width: 768px) {
    .glow-effect,
    .glow-accent,
    .glow-primary,
    .glow-center {
        display: none;
    }
    .service-card:hover {
        transform: none;
    }
}