/* Custom CSS for DNS Expert Website */

/* Fix horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c3ed4c, #a8d140);
    border-radius: 6px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d4ff5e, #c3ed4c);
}

/* Selection Color */
::selection {
    background-color: #c3ed4c;
    color: #0f0f0f;
}

::-moz-selection {
    background-color: #c3ed4c;
    color: #0f0f0f;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(195, 237, 76, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(195, 237, 76, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #c3ed4c 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(195, 237, 76, 0.2);
}

/* Card Hover Effect */
.card-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(195, 237, 76, 0.1);
}

/* Enhanced Card Hover */
.card-hover-3d {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-hover-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(195, 237, 76, 0.3);
}

/* Gradient Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Neon Button Effect */
.btn-neon {
    position: relative;
    overflow: hidden;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 0 0 10px rgba(195, 237, 76, 0.5),
                 0 0 20px rgba(195, 237, 76, 0.3),
                 0 0 30px rgba(195, 237, 76, 0.2);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(195, 237, 76, 0.3);
    border-radius: 50%;
    border-top-color: #c3ed4c;
    animation: spin 1s ease-in-out infinite;
}

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

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Back to Top Button Animation */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

/* Form Focus Effect */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #c3ed4c !important;
    box-shadow: 0 0 0 3px rgba(195, 237, 76, 0.1);
}

/* Image Loading Effect */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0.5;
}

/* Pricing Card Highlight */
.pricing-card-highlight {
    position: relative;
}

.pricing-card-highlight::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #c3ed4c, transparent, #c3ed4c);
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card-highlight:hover::after {
    opacity: 1;
}

/* Testimonial Card Effect */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(195, 237, 76, 0.15);
}

/* Skip link */
.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: #c3ed4c;
    color: #0f0f0f;
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(195, 237, 76, 0.45);
    outline: none;
}

/* Section intro layout */
.section-intro {
    display: grid;
    gap: 1.2rem;
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 52rem;
}

.section-intro--left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(195, 237, 76, 0.25);
    background: rgba(195, 237, 76, 0.08);
    color: #c3ed4c;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
}

.section-intro--left .section-eyebrow {
    justify-content: flex-start;
}

.section-eyebrow__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #c3ed4c;
    box-shadow: 0 0 0 0 rgba(195, 237, 76, 0.35);
    animation: eyebrow-pulse 1.8s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(195, 237, 76, 0.35);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(195, 237, 76, 0);
    }
}

.section-heading {
    font-size: clamp(2.125rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    color: #f9fafb;
    text-wrap: balance;
}

.section-description {
    color: #9ca3af;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 48rem;
    text-wrap: pretty;
}

.section-intro--left .section-description {
    margin-left: 0;
}

.section-bullets {
    display: grid;
    gap: 1rem;
    color: #9ca3af;
    line-height: 1.65;
}

.section-bullets li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.section-bullets li span:last-child {
    flex: 1;
}

/* Review logo carousel */
.logo-carousel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0) 100%);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0) 100%);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    animation: logo-scroll 35s linear infinite;
    width: max-content;
}

.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem; /* Base height for desktop */
    max-height: 3rem;
    width: auto;
    max-width: 220px; /* cap overly wide logos */
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%);
    opacity: 0.78;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-4px);
}

.logo-item:focus-visible {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-4px);
    outline: 2px solid rgba(195, 237, 76, 0.7);
    outline-offset: 6px;
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Portfolio Item Overlay */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 15, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 0.6s ease;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(195, 237, 76, 0.3), transparent);
}

/* Responsive Utilities */
@media (max-width: 1023px) {
    .has-mobile-cta {
        padding-bottom: 96px;
    }

    #back-to-top {
        bottom: 7.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-padding-bottom {
        padding-bottom: 64px;
    }

    .logo-track {
        gap: 2rem;
    }

    .logo-carousel::before,
    .logo-carousel::after {
        width: 40px;
    }

    .section-heading {
        font-size: clamp(2.1rem, 8vw, 3rem);
    }

    .section-description {
        font-size: 1rem;

    }

    .logo-item {
        height: 2.4rem; /* Slightly reduce */
        max-height: 2.4rem;
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .section-intro {
        margin-bottom: 2.5rem;
    }

    .section-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo-track {
        gap: 1.5rem;
    }

    .logo-item {
        height: 2.1rem;
        max-height: 2.1rem;
        max-width: 160px;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }

    .section-eyebrow__dot {
        animation: none;
    }
}

/* Unified partner/review logo sizing helper (if used outside carousel) */
.partner-logo,
.review-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    max-height: 3rem;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%);
    opacity: 0.78;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover,
.review-logo:hover,
.partner-logo:focus-visible,
.review-logo:focus-visible {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .partner-logo,
    .review-logo { height: 2.4rem; max-height: 2.4rem; max-width: 180px; }
}
@media (max-width: 480px) {
    .partner-logo,
    .review-logo { height: 2.1rem; max-height: 2.1rem; max-width: 160px; }
}

/* Print Styles */
@media print {
    nav,
    footer,
    #back-to-top,
    .mobile-action-buttons {
        display: none !important;
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid #c3ed4c;
    outline-offset: 2px;
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Already in dark mode */
}

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