/* 
 * RJ Digital Solutions - V3 Ultra-Modern Design
 * Theme: Cyberpunk / SaaS / Deep Void
 */

/* --- 1. Variables & Design System --- */
:root {
    /* Palette */
    --bg-void: #050505;
    --bg-panel: #0a0a0a;
    --primary-neon: #00f3ff;
    /* Cyan Neon */
    --secondary-neon: #bc13fe;
    /* Purple Neon */
    --accent-pink: #ff0055;

    /* Text */
    --text-main: #ffffff;
    --text-muted: #8892b0;

    /* Gradients */
    --grad-glow: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    --grad-void: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --neon-glow: 0 0 20px rgba(0, 243, 255, 0.3);
    --neon-glow-purple: 0 0 20px rgba(188, 19, 254, 0.3);

    /* Layout */
    --container-width: 1400px;
    /* Wider for modern look */
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    /* Custom Easing */
}

/* --- 2. Base & Typography --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* cursor: none; REMOVED */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: transparent;
    /* Particles visible behind */
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    cursor: default !important;
}

/* Mobile Touch Optimization */
@media (max-width: 768px) {

    .btn-neon,
    .nav-link,
    button,
    a {
        min-height: 44px;
        /* Accessible touch target */
        min-width: 44px;
    }

    .hero {
        padding-top: 120px;
        /* Prevent header overlap */
        min-height: auto;
        /* Allow content to dictate height on mobile */
        padding-bottom: 60px;
    }
}

/* Enforce pointer on interactive elements */
a,
button,
.btn,
input,
textarea,
select,
.btn-neon,
.nav-link,
.service-card,
.portfolio-item {
    cursor: pointer !important;
}

/* Custom Cursor - DISABLED
.cursor-dot,
.cursor-circle {
    display: none;
}
*/

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 5rem;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* --- 3. Utilities & Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.panel-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 16px;
}

/* --- 4. Buttons --- */
.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-void);
    background: var(--primary-neon);
    border: none;
    border-radius: 4px;
    /* Brutalist/Tech shape */
    box-shadow: var(--neon-glow);
    transition: all 0.3s var(--easing), transform 0.2s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-neon:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-glow-purple);
    color: white;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-neon);
    z-index: -1;
    transition: transform 0.4s var(--easing);
    transform: translateX(-100%) skewX(-15deg);
}

.btn-neon:hover::before {
    transform: translateX(0) skewX(0);
}

.btn-neon:hover {
    box-shadow: var(--neon-glow-purple);
    color: white;
}

/* --- 5. Hero & Particles --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    /* Increased to prevent overlap */
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Ensure content is above background */
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        /* Center items in their cells */
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Service Chips */
.hero-services {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.service-chip {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--easing);
}

.service-chip i {
    color: var(--primary-neon);
}

.service-chip:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--primary-neon);
    transform: translateY(-2px);
}

/* Trust Strip (New) */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-item i {
    color: var(--primary-neon);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glitch Effect on Text */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-void);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary-neon);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary-neon);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 81px, 0);
    }

    20% {
        clip: rect(69px, 9999px, 12px, 0);
    }

    40% {
        clip: rect(6px, 9999px, 99px, 0);
    }

    60% {
        clip: rect(104px, 9999px, 10px, 0);
    }

    80% {
        clip: rect(32px, 9999px, 47px, 0);
    }

    100% {
        clip: rect(96px, 9999px, 5px, 0);
    }
}

/* --- 12. FAQ Section (Compact Redesign) --- */
.faq-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Compact gap */
}

/* 2. Card Design - Compact */
.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More subtle */
    border-radius: 8px;
    /* Slightly squarer for compact look */
    overflow: hidden;
    transition: all 0.2s ease;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

/* 3. Button / Header */
.accordion-header {
    width: 100%;
    padding: 16px 20px;
    /* Reduced vertical padding */
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    outline: none;
    min-height: auto;
    /* Ensure no fixed height */
}

.question-text {
    font-size: 1.1rem;
    /* ~17-18px */
    font-weight: 600;
    color: #ffffff;
    padding-right: 15px;
    line-height: 1.4;
}

/* 4. Icon */
.icon-toggle {
    font-size: 0.9rem;
    /* Smaller icon */
    color: var(--primary-neon);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    /* Prevent squish */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--easing);
}

/* 5. Content / Answer */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: transparent;
}

.answer-text {
    padding: 0 20px 20px 20px;
    /* Compact padding */
}

.answer-text p {
    font-size: 0.95rem;
    /* ~15px */
    color: #b0b0b0;
    line-height: 1.5;
    margin: 0;
}

/* Active State */
.accordion-header[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header[aria-expanded="true"] .icon-toggle {
    transform: rotate(135deg);
    color: var(--secondary-neon);
}

/* Mobile */
@media (max-width: 768px) {
    .faq-section {
        padding: 50px 0;
    }

    .accordion-container {
        gap: 10px;
        width: 100%;
        padding: 0 5px;
        /* Tiny side padding */
    }

    .accordion-item {
        border-radius: 6px;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .question-text {
        font-size: 1rem;
        /* 16px */
    }

    .answer-text {
        padding: 0 16px 16px 16px;
    }

    .answer-text p {
        font-size: 0.9rem;
    }
}

/* --- 7. Portfolio (Masonry/Grid) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-panel);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--easing);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* --- 8. Footer (Mega Grid) --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #020202;
    padding: 100px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

/* --- 9. Responsive --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        column-count: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Use mobile drawer logic */
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    /* Reduced padding */
    transition: all 0.4s var(--easing);
    background: transparent;
}

.nav-logo-img {
    height: 55px !important;
    width: auto !important;
    object-fit: contain;
}

.main-header.sticky {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
}

.brand-text {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    display: none;
    /* Visible on scroll or hover if preferred, keeping visible always for branding */
    margin-right: 20px;
    /* spacing */
}

@media (min-width: 768px) {
    .brand-text {
        display: block;
    }
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }

    .desktop-nav ul {
        display: flex;
        list-style: none;
        gap: 30px;
    }

    .nav-link {
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.3s;
        position: relative;
        padding-bottom: 5px;
        cursor: pointer !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-neon);
        transition: width 0.3s var(--easing);
        box-shadow: var(--neon-glow);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--text-main);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-btn {
    display: none;
    padding: 10px 24px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .header-btn {
        display: inline-flex;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    /* Slide in width */
    height: 100vh;

    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--primary-neon);
    border-color: var(--primary-neon);
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Ensure Mobile Menu is hidden on desktop */
@media (min-width: 992px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Hero Subtext & Buttons */
.hero-subtext {
    margin: 30px 0;
    max-width: 600px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Mobile Overrides (Legacy) */
@media (max-width: 768px) {
    .nav-logo-img {
        height: 35px;
    }

    .main-header {
        padding: 15px 0;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 50px;
        height: auto;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-subtext {
        font-size: 1rem;
        margin: 15px 0 25px;
        line-height: 1.5;
    }

    .hero-buttons {
        gap: 15px;
        width: 100%;
        justify-content: center;
        margin-bottom: 30px;
    }

    .btn-full-mobile {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* --- 11. Contact Page Styles --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-image {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-container {
    padding: 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 2.5rem;
}

.contact-header h2 {
    font-size: 1rem;
    color: var(--primary-neon);
    margin-top: 10px;
}

.contact-header p {
    color: var(--text-muted);
    margin-top: 10px;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    color: white;
    border-radius: 4px;
    font-family: inherit;
}

.full-width {
    grid-column: span 2;
}

.contact-submit-btn {
    width: 100%;
}

.contact-info-layout {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    text-align: center;
    color: var(--text-muted);
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.icon-primary {
    color: var(--primary-neon);
}

.icon-secondary {
    color: var(--secondary-neon);
}

.icon-accent {
    color: var(--accent-pink);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-container {
        padding: 25px;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-form-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .full-width {
        grid-column: span 1;
    }

    .form-input {
        padding: 14px;
        font-size: 1rem;
    }

    .contact-info-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
}

/* --- 12. FAQ Section --- */
.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-neon);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-content p {
    padding: 20px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.icon-plus {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--secondary-neon);
}

.accordion-header.active {
    background: rgba(0, 243, 255, 0.05);
    color: var(--primary-neon);
}

.accordion-header.active .icon-plus {
    transform: rotate(45deg);
    color: var(--primary-neon);
}

@media (max-width: 768px) {
    .accordion-header {
        font-size: 1rem;
        padding: 15px;
    }
}


/* =========================================
   MOBILE GLOBAL OPTIMIZATION (Force Fix)
   Targeting: < 1024px (Tablet) & < 768px (Mobile)
   ========================================= */

/* --- 1. Global Resets & Overflow Fix --- */
html,
body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
    max-width: 100% !important;
    height: auto !important;
}

.container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* --- 2. Typography Scaling --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .section-title {
        margin-bottom: 40px !important;
    }
}

/* --- 3. Header & Navigation --- */
@media (max-width: 1024px) {

    .desktop-nav,
    .header-btn {
        display: none !important;
    }

    .mobile-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1100;
        color: var(--text-main);
    }

    .nav-logo-img {
        height: 35px !important;
        /* Smaller logo */
    }

    .main-header .container {
        padding: 15px 20px !important;
    }
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #050505;
    /* Deep void */
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 100px 30px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
}

.mobile-menu a:hover {
    color: var(--primary-neon);
    padding-left: 10px;
    transition: all 0.3s;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* --- 4. Hero Section --- */
@media (max-width: 768px) {
    .hero {
        padding-top: 140px !important;
        padding-bottom: 60px !important;
        text-align: center;
        min-height: auto !important;
        height: auto !important;
        display: block !important;
    }

    .hero-grid {
        display: flex !important;
        flex-direction: column-reverse;
        /* Text first, Image second */
        gap: 40px;
        align-items: center;
    }

    .hero-content {
        padding-right: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        justify-content: center;
    }

    .hero-btns .btn-neon,
    .hero-btns .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-image {
        width: 100% !important;
        margin-top: 0;
        max-width: 400px;
        /* Limit size */
    }
}

/* --- 5. Services & Grids --- */
@media (max-width: 768px) {

    .services-grid,
    .portfolio-grid,
    .footer-grid,
    .feature-strip,
    .about-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .feature-strip {
        display: flex !important;
        flex-direction: column;
        gap: 30px !important;
    }

    .about-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .about-image {
        margin-bottom: 30px;
        width: 100%;
    }
}

/* --- 7. Footer --- */
@media (max-width: 768px) {
    footer {
        text-align: center;
        padding: 60px 0 30px !important;
    }

    .footer-links ul {
        align-items: center;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- 8. Forms (Global) --- */
@media (max-width: 768px) {

    input,
    select,
    textarea,
    button {
        width: 100%;
        min-height: 50px;
        /* Touch target */
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

     

/* --- 9. New Sections (Results, Pricing, Testimonials) --- */
.section-padding {
    padding: 100px 0;
}

/* Results / Case Studies */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary-neon);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
}

.pricing-card.featured {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--primary-neon);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 20px 0;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.price-features li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.price-features i {
    color: var(--primary-neon);
    margin-right: 10px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--secondary-neon);
}

.stars {
    color: #ffd700;
    margin-bottom: 15px;
}

/* Service Areas */
.area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.area-chip {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SEO Audit Form */
.audit-box {
    background: linear-gradient(45deg, rgba(0, 243, 255, 0.1), rgba(0, 0, 0, 0));
    border: 1px solid var(--primary-neon);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-top: 60px;
}

.audit-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 30px auto 0;
}

/* Responsive for new sections */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .audit-form {
        flex-direction: column;
    }
}

/* --- WhatsApp Growth Features --- */

/* 1. Global Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 2. Service CTA Buttons (Override) */
.btn-whatsapp-cta {
    background: transparent;
    border: 1px solid #25d366;
    color: #25d366;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-whatsapp-cta:hover {
    background: #25d366;
    color: white;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* 3. Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--primary-neon);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.exit-popup-overlay.active .exit-popup-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

.close-popup:hover {
    color: white;
}

/* 4. Trust Badges in Hero */
.trust-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    color: #25d366;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* --- UI/UX Polish 2025 --- */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-link {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-top: auto;
}

.service-link:hover {
    transform: translateX(5px);
}

/* Blog Meta */
.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Helper */
@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .trust-strip-text {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .btn-full-mobile {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}


/* --- Footer Redesign 2025 Overrides --- */
.footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr !important;
    gap: 40px !important;
}

.footer-heading {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-neon);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary-neon);
    color: black;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .brand-col {
        grid-column: span 3;
        text-align: center;
    }

    .brand-col .logo {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .brand-col {
        grid-column: auto;
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }
}


/* Fix Footer Logo Size */
.brand-col .logo img {
    height: 80px !important;
    width: auto !important;
}

@media (max-width: 768px) {
    .brand-col .logo img {
        height: 70px !important;
    }
}


/* --- Layout & Spacing Polish 2025 --- */
section {
    padding: 100px 0 !important;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }
}

/* Visual Break Elements */
.visual-divider {
    width: 100%;
    height: 40px;
    background: url('../images/hero-divider.png') no-repeat center center;
    background-size: contain;
    margin: 40px 0;
    opacity: 0.8;
}

.section-banner {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    margin: 60px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.testimonials-bg {
    background: url('../images/testimonials-bg.png') repeat !important;
    background-size: 500px !important;
    position: relative;
}

.testimonials-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darken the pattern */
    z-index: 0;
}

.testimonials-bg .container {
    position: relative;
    z-index: 1;
}

.blog-header-visual {
    width: 100%;
    height: 400px;
    background: url('../images/blog-header.png') no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* --- Contact Page Responsive Fixes --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-grid-span-1 {
    grid-column: span 1;
}

.contact-grid-span-2 {
    grid-column: span 2;
}

.contact-info-bar {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid-span-1 {
        grid-column: span 2;
        /* Force full width on mobile */
    }

    .contact-info-bar {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* --- Hero Enhancements 2025 --- */

/* 1. Enhanced Typography */
.hero-title-enhanced {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

@media (min-width: 1024px) {
    .hero-title-enhanced {
        font-size: 4.2rem;
        /* Bigger on desktop */
    }
}

/* 2. Text Gradient Polish */
.text-gradient-premium {
    background: linear-gradient(90deg, #00f3ff 0%, #bc13fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(188, 19, 254, 0.3));
}

/* 3. Hero Background Glow */
.hero-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* 4. Button Pulse Animation */
.btn-pulse {
    position: relative;
    overflow: hidden;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: btn-pulse-anim 2s infinite;
    opacity: 0.5;
}

@keyframes btn-pulse-anim {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* 5. 3D Image Float Improved */
.hero-image-3d {
    animation: float-3d 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.2));
    perspective: 1000px;
}

@keyframes float-3d {

    0%,
    100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    50% {
        transform: translateY(-15px) rotateX(2deg) rotateY(-2deg);
    }
}


/* --- Authority Pages (Case Studies & FAQ) 2025 --- */

/* Case Studies Grid */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.case-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 243, 255, 0.15);
    border-color: var(--primary-neon);
}

.case-img-wrapper {
    height: 250px;
    /* Consistent height */
    overflow: hidden;
    position: relative;
}

.case-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-img-wrapper img {
    transform: scale(1.05);
}

.case-content {
    padding: 30px;
}

.case-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-stat-item h4 {
    font-size: 1.5rem;
    color: var(--primary-neon);
    margin-bottom: 5px;
}

.case-stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Page Styles */
.faq-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.faq-category-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-cat-btn {
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-cat-btn.active,
.faq-cat-btn:hover {
    background: var(--primary-neon);
    color: black;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

@media (max-width: 768px) {
    .faq-hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }
}


/* --- GEO / AI Search Enhancements 2025 --- */

/* 1. AI Quick Summary Box */
.geo-summary-box {
    background: rgba(25, 25, 35, 0.9);
    border: 1px solid var(--primary-neon);
    border-left: 5px solid var(--primary-neon);
    padding: 20px 30px;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    position: relative;
    z-index: 10;
}

.geo-summary-title {
    color: var(--primary-neon);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.geo-summary-text {
    color: white;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* 2. Areas We Serve Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.area-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.area-card:hover {
    background: var(--primary-neon);
    color: black;
    transform: translateY(-5px);
}

.area-card span {
    display: block;
    font-weight: 600;
}

/* 3. Lead Magnet Section */
.lead-magnet-box {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1) 0%, rgba(188, 19, 254, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lead-magnet-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate-bg 20s linear infinite;
    z-index: 0;
}

@keyframes rotate-bg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lead-content {
    position: relative;
    z-index: 1;
}



/* --- 2025 Mobile Responsiveness Fixes (Global) --- */

/* 1. Global Resets for Mobile */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* 2. Typography Adjustments */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        /* Slightly smaller base */
    }

    h1 {
        font-size: 2.5rem;
        /* Down from 3.5rem or 5rem */
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .container {
        padding: 0 20px;
        /* More breathing room for content, less dead space */
    }

    section {
        padding: 50px 0 !important;
        /* Consistent reduced spacing */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-title-enhanced {
        font-size: 2.5rem;
    }

    .btn-neon {
        width: 100%;
        /* Full width buttons for easier tapping */
        justify-content: center;
        margin-bottom: 10px;
    }

    .header-actions {
        gap: 10px;
    }
}

/* 3. Hero Section fixes */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-neon {
        width: 100%;
        justify-content: center;
    }
}

/* 4. Portfolio Grid Link Fix */
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        /* Force single column */
    }

    .portfolio-item {
        height: 250px;
        /* Slightly shorter on mobile */
    }
}

/* 5. Footer Fixes */
@media (max-width: 768px) {
    footer {
        padding: 50px 0 30px;
    }

    .footer-grid {
        gap: 30px !important;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .footer-legal span {
        display: none;
        /* Hide pipes */
    }
}

/* 6. Contact Form Fixes */
@media (max-width: 768px) {

    input,
    textarea,
    select {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }
}

/* 7. Lead Magnet & Geo Components */
@media (max-width: 768px) {
    .lead-magnet-box {
        padding: 25px;
    }

    .geo-summary-box {
        padding: 20px;
        margin: 30px 0;
    }

    .areas-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 cols is fine */
    }
}

@media (max-width: 380px) {
    .areas-grid {
        grid-template-columns: 1fr;
        /* 1 col for very small screens */
    }
}

/* 8. Utility Classes */
.mobile-hidden {
    display: none !important;
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none !important;
    }

    .mobile-hidden {
        display: block !important;
    }
}


/* --- Mobile Sticky Bottom Bar (Conversion Booster) --- */
/* --- Mobile Sticky Bottom Bar (Conversion Booster) --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    /* Hidden by default */
    z-index: 9999;
    padding: 12px 15px;
    /* Slightly more padding */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-bar .sticky-container {
    display: flex;
    width: 100%;
}

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.sticky-btn.wa-btn-full {
    width: 100%;
    background: #25d366;
    border: 1px solid #25d366;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.sticky-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
    }

    /* Add padding to body so content isn't covered */
    body {
        padding-bottom: 80px;
        /* Increased for taller bar */
    }

    /* Hide the floating whatsapp button (old one) on mobile */
    .whatsapp-float {
        display: none !important;
    }
}


/* --- 9. Global Particle Background --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    /* Full opacity, handled by color vars */
    background-color: var(--bg-void);
    /* Background is here now */
}

/* --- Redesigned Service Cards (Glassmorphism) --- */
.services-section {
    position: relative;
    padding: 80px 0;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 243, 255, 0.3);
    /* Neon Cyan hint */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

/* Fallback for icon color if gradient doesn't work */
.service-icon i {
    color: var(--primary-neon);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 700;
}

.service-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
    color: var(--primary-neon) !important;
    /* Ensure visibility */
}

.service-link:hover {
    gap: 12px;
}

/* --- Founder & Trust Section (Step 5) --- */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.founder-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--secondary-neon);
    /* Soft Purple accent */
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.founder-badge {
    background: rgba(157, 78, 221, 0.2);
    color: var(--secondary-neon);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.founder-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.founder-sign {
    font-family: 'Segoe Script', cursive, serif;
    /* Or any script font available */
    font-size: 1.5rem;
    color: var(--secondary-neon);
    opacity: 0.8;
}

.trust-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.trust-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.trust-list li i {
    font-size: 1.4rem;
    color: var(--primary-neon);
    margin-top: 3px;
    flex-shrink: 0;
}

.trust-list li strong {
    display: block;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 4px;
}

.trust-list li p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.local-authority-line {
    margin-top: 60px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.local-authority-line i {
    color: var(--accent-pink);
    margin-right: 8px;
}

.local-authority-line span {
    color: white;
    font-weight: 600;
    margin: 0 5px;
}

/* Mobile Adjustments for Founder Section */
@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-card {
        padding: 30px 20px;
    }

    .local-authority-line {
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .local-authority-line span {
        display: inline-block;
        margin: 2px 5px;
    }
}

/* --- Portfolio Showcase (Step 6) --- */
.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Clean dark border */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-image {
    position: relative;
    height: 200px;
    background: #000;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
    /* Soft zoom */
}

.project-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 8px;
}

.service-meta {
    font-size: 0.9rem;
    color: var(--secondary-neon);
    margin-bottom: 12px;
}

.result-text {
    font-size: 0.95rem;
    color: #cccccc;
    font-style: italic;
    margin-bottom: 20px;
    border-left: 2px solid var(--primary-neon);
    padding-left: 10px;
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.status-label .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-label.live {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.status-label.sample {
    background: rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
}

/* --- Pricing & Conversion (Step 7) --- */
.plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.plan-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card.featured-plan {
    border-color: var(--primary-neon);
    background: rgba(0, 243, 255, 0.02);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.05);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-neon);
    color: black;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 10. Mobile Optimization (V3 Pro) --- */
@media (max-width: 768px) {

    /* --- Layout & Spacing --- */
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 50px 0;
    }

    /* --- Hero Section Fixes (Minimalist) --- */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
        overflow: hidden;
        text-align: left;
        /* Better for readability on mobile often, but center is fine if limited text */
    }

    /* Hide Distractions & Clutter */
    .hero-image,
    .hero-badge,
    .hero-services,
    .trust-strip,
    .trust-strip-text,
    .section-banner,
    .visual-divider,
    .hero-glow-bg {
        display: none !important;
    }

    /* Simplify Hero Text */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero h1,
    .hero-title-enhanced {
        font-size: 2.2rem !important;
        /* Slightly smaller for elegance */
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .hero-subtext {
        font-size: 1rem;
        padding: 0;
        color: #b0b0b0;
        /* Softer white */
        line-height: 1.6;
        margin-bottom: 25px;
        max-width: 100%;
    }

    /* Single Dominant CTA in Hero */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 0;
    }

    /* Hide secondary button in hero (we have sticky bar) */
    .hero-buttons .btn-secondary-hero {
        display: none !important;
    }

    .btn-neon {
        width: 100%;
        margin-bottom: 0;
    }

    .d-none-mobile {
        display: none !important;
    }

    /* --- Cards & General UI --- */
    .service-card,
    .pricing-card,
    .result-card,
    .testimonial-card,
    .accordion-item,
    .geo-summary-box {
        width: 100% !important;
        margin-bottom: 20px;
        overflow: hidden;
        /* Prevent content spill */
    }

    /* Ensure no card overlap */
    .results-grid,
    .services-grid,
    .pricing-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Typography Adjustments */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Mobile Menu --- */
    .mobile-menu {
        width: 85%;
        max-width: 320px;
        padding: 20px;
    }

    .mobile-menu a {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Forms */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.blog-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s var(--easing);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--primary-neon);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more {
    margin-top: auto;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-neon);
}

/* --- Mobile Sticky Bar --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    padding: 10px 20px;
    display: none;
    /* Hidden on desktop */
}

.sticky-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.sticky-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.sticky-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.call-btn {
    background: var(--primary-neon);
    color: black;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
}

.wa-btn {
    background: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
        animation: slideUp 0.5s ease;
    }

    /* Ensure content isn't hidden behind bar */
    footer {
        padding-bottom: 90px !important;
    }

    /* Move floating button up */
    .whatsapp-float {
        bottom: 90px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}