:root {
    --primary: #7C3AED;
    --secondary: #EC4899;
    --accent: #F5F3FF;
    --dark: #111827;
    --light: #FAFAFA;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFAFA;
    color: #111827;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-syne {
    font-family: 'Syne', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: #fff;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: #111827;
    border: 2px solid #111827;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-outline:hover {
    background: #111827;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-creative {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card-creative:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.card-creative::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-creative:hover::before {
    opacity: 1;
}

.section-padding {
    padding: 6rem 2rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 1rem;
    }
}

.shadow-soft {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FAFAFA;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #7C3AED;
    border-right-color: #EC4899;
    animation: loaderSpin 0.8s linear infinite;
}

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

/* Masonry */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

/* Scroll to top */
#scrollToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
    transition: all 0.35s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.6);
}

/* Hover zoom */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

/* Testimonial slider */
.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

/* Mobile menu - IMPROVED & FIXED */
#mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    /* dynamic viewport height for mobile browsers */
    background: #fff;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
    gap: 0.5rem;
    overflow-y: auto;
    /* scrollable if content overflows */
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* Close button inside mobile menu */
#menuClose {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 5;
}

#menuClose:hover {
    background: #e5e7eb;
}

/* Mobile menu links */
#mobileMenu a {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

#mobileMenu a:hover,
#mobileMenu a:active {
    color: #7C3AED;
    padding-left: 0.5rem;
}

#mobileMenu a.font-syne {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    color: #111827;
    font-size: 1.1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Hire Me button inside mobile menu */
#mobileMenu .btn-primary {
    margin-top: 0.75rem;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
}

/* Mobile overlay */
#mobileOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#mobileOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sticky hire me mobile */
#stickyHireMobile {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 768px) {
    #stickyHireMobile {
        display: block;
    }
}

/* Hide sticky hire button when mobile menu is open */
body.menu-open #stickyHireMobile {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Footer custom styles */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #7C3AED;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #7C3AED;
}

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

.footer-badge {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    display: inline-block;
}

.fa-brands {
    font-size: 16px;
}

/* Remove horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

body.menu-open {
    overflow: hidden;
    /* prevent body scroll when menu is open */
}

/* Navbar z-index fix */
#navbar {
    z-index: 1000;
}

/* Safe area for notched phones */
@supports(padding-top: env(safe-area-inset-top)) {
    #mobileMenu {
        padding-top: calc(5rem + env(safe-area-inset-top));
    }

    #menuClose {
        top: calc(1rem + env(safe-area-inset-top));
    }
}

/* Portfolio filter tabs */
.filter-tab {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: #7C3AED;
    color: #fff;
    border-color: #7C3AED;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.filter-tab:hover:not(.active) {
    border-color: #7C3AED;
    color: #7C3AED;
}

/* Project card overlay */
.project-card .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.project-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
    transform: scale(1.06);
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #111827;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #7C3AED;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
    margin-top: 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    margin-top: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* Process step numbers */
.process-step {
    counter-increment: step-counter;
}

.process-step::before {
    content: counter(step-counter);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #7C3AED;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    z-index: 2;
}

/* Article styles */
.article-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    border-left: 4px solid #7C3AED;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #F5F3FF;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #4b5563;
    font-size: 1.1rem;
}

.article-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-body img {
    border-radius: 1rem;
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

/* Related posts cards */
.related-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

/* Privacy content typography */
.policy-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #111827;
}

.policy-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.policy-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.policy-content a {
    color: #7C3AED;
    text-decoration: underline;
}

/* Timeline dot */
.timeline-dot {
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #7C3AED;
    border-radius: 50%;
    top: 0;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e5e7eb;
    top: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .timeline-dot::before {
        left: 0;
    }

    .timeline-line {
        left: 0;
    }
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.shadow-soft {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.card-creative {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-creative:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.blog-card-img {
    height: 200px;
    background-size: cover;
    transition: transform 0.5s ease;
}

.card-creative:hover .blog-card-img {
    transform: scale(1.05);
}

/* Pagination */
.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.active {
    background: #7C3AED;
    color: #fff;
    border-color: #7C3AED;
}

.page-btn:hover:not(.active) {
    border-color: #7C3AED;
    color: #7C3AED;
}

/* Terms content typography */
        .terms-content h2 {
            font-family: 'Syne', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            margin-top: 3rem;
            margin-bottom: 1rem;
            color: #111827;
        }
        .terms-content h3 {
            font-family: 'Syne', sans-serif;
            font-size: 1.3rem;
            font-weight: 600;
            margin-top: 2rem;
            margin-bottom: 0.75rem;
            color: #111827;
        }
        .terms-content p {
            font-size: 1.05rem;
            line-height: 1.8;
            color: #4b5563;
            margin-bottom: 1.5rem;
        }
        .terms-content ul {
            list-style-type: disc;
            padding-left: 1.5rem;
            margin-bottom: 1.5rem;
            color: #4b5563;
        }
        .terms-content li {
            margin-bottom: 0.5rem;
            line-height: 1.7;
        }
        .terms-content a {
            color: #7C3AED;
            text-decoration: underline;
        }
        /* Gallery image hover */
        .gallery-item {
            border-radius: 1rem;
            overflow: hidden;
            transition: all 0.35s ease;
        }
        .gallery-item:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 30px rgba(0,0,0,0.1);
        }

        /* Results stat card */
        .stat-card {
            background: #fff;
            border-radius: 1.25rem;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.04);
        }
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(124, 58, 237, 0.1);
        }
        /* Project nav arrows */
        .project-nav-btn {
            width: 48px; height: 48px; border-radius: 50%;
            background: #fff;
            display: flex; align-items: center; justify-content: center;
            border: 1px solid #e5e7eb;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .project-nav-btn:hover {
            background: #7C3AED;
            border-color: #7C3AED;
            color: #fff;
        }
        /* Notification items */
        .notification-item {
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }
        .notification-item.unread {
            border-left-color: #7C3AED;
            background: #F5F3FF;
        }
        .notification-item:hover {
            background: #fff;
            box-shadow: 0 4px 15px rgba(0,0,0,0.04);
        }
        .notification-item .dismiss-btn {
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .notification-item:hover .dismiss-btn {
            opacity: 1;
        }

