/* =============================================
   MOBILINQ GUELPH - Custom Styles
   ============================================= */

:root {
    --brand: #dc3838;
    --brand-dark: #b82d2d;
    --brand-light: #ff6b6b;
    --brand-gradient: linear-gradient(135deg, #dc3838 0%, #b82d2d 100%);
}

/* ----- FONTS ----- */
* {
    font-family: 'Inter', 'Poppins', sans-serif;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* ----- SMOOTH SCROLL ----- */
html {
    scroll-behavior: smooth;
}

/* ----- HEADER ----- */
#header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(0,0,0,0.06);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

#header.scrolled .nav-link {
    color: #4a5568;
}

/* ----- NAV LINKS ----- */
.nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
    background: rgba(220, 56, 56, 0.06);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

/* ----- MOBILE NAV ----- */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--brand);
    background: rgba(220, 56, 56, 0.06);
}

/* ----- ANIMATED PARTICLES ----- */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: var(--s);
    height: var(--s);
    left: var(--x);
    top: var(--y);
    background: var(--brand);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.3; }
}

/* ----- HERO ----- */
.hero-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.8s ease forwards;
}

.animate-scrollDot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ----- REVEAL ON SCROLL ----- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ----- SERVICE CARDS ----- */
.service-card .service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ----- ISSUE CARDS ----- */
.issue-card {
    transition: all 0.3s ease;
}

.issue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* ----- WHY CARDS ----- */
.why-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ----- BRAND LOGOS ----- */
.brand-logo {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 1rem;
}

.brand-logo:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ----- TESTIMONIAL CARDS ----- */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* ----- FORM STYLES ----- */
input, select, textarea {
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(220, 56, 56, 0.1);
}

/* ----- BACK TO TOP ----- */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ----- LOADING BUTTON STATE ----- */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- RESPONSIVE TWEAKS ----- */
@media (max-width: 768px) {
    .hero-card-icon {
        width: 3rem;
        height: 3rem;
    }
    .hero-card-icon i {
        font-size: 1.2rem;
    }
}

/* Selection */
::selection {
    background: var(--brand);
    color: white;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

