/* 
  NoProblem Redesign - CSS Design System
  Brand Color Palette & Base Styles
*/

:root {
    /* Brand Colors */
    --color-primary: #0086cb;
    --color-primary-dark: #006da5;
    --color-secondary: #495fb8;
    --color-accent: #fed012;

    /* Gradients */
    --bg-gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Premium Glass Effect */
    --glass-strong-bg: rgba(255, 255, 255, 0.85);
    --glass-strong-border: rgba(255, 255, 255, 0.6);
    --glass-blur: 20px;

    /* Neutrals */
    --color-white: #ffffff;
    --color-light: #f5f5f5;
    --color-gray: #e8e8e8;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --input-bg: #f9f9f9;

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing & Borders */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.15); /* Deeper shadow for premium feel */

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Antispam Utility */
.hidden-field {
    display: none !important;
    visibility: hidden !important;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Separates text from icons */
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: var(--bg-gradient-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 134, 203, 0.3);
}

.text-gradient {
    background: var(--bg-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Components */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* Dropdown */
.dropdown {
    position: relative;
    padding: 10px 0;
    /* Increase hit area */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-xs) 0;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border-top: 3px solid var(--color-primary);
}

.dropdown:hover .dropdown-menu {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: var(--color-light);
    color: var(--color-primary);
    padding-left: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific style for the CTA in nav */
.nav-links a.btn {
    color: #ffffff !important;
    /* Force pure white */
    padding: 0.6rem 1.5rem;
    background: var(--bg-gradient-primary);
    /* Ensure background is set */
    opacity: 1;
    /* Ensure no opacity fade */
    box-shadow: var(--shadow-sm);
}

.nav-links a.btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

/* Ensure hamburger is hidden on desktop */
.mobile-menu-toggle {
    display: none;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ... existing styles ... */

@media (max-width: 991px) {

    .hero-grid,
    .product-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Mobile Nav Dropdown */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        /* Ensure it sits on top */
        border-top: 1px solid var(--color-gray);
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: block;
        width: 100%;
        padding-left: 20px;
        border-top: none;
        border-left: 2px solid var(--color-gray);
        margin-top: 10px;
        margin-bottom: 10px;
        display: none;
        /* Hidden by default on mobile until parent is clicked? Or always show? User didn't specify, but plan said "display: block" initially. Let's make it always visible or toggleable manually? For simplicity in Plan I said "display: block" in mobile section but effectively it might clutter. However, let's follow the simple approach: indentation. */
        display: block;
        background: transparent;
    }

    .dropdown:hover .dropdown-menu {
        /* Remove hover effect on mobile usually, but since it's display block it's fine */
        animation: none;
    }

    .dropdown-menu a {
        padding: 8px 0;
    }

    .dropdown {
        padding: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block !important;
        /* Show ONLY on mobile */
        font-size: 1.5rem;
        color: var(--color-text);
        cursor: pointer;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .text-center-mobile {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-block {
        width: 100%;
    }
}

.hero {
    padding-top: var(--spacing-xl);
    min-height: 80vh;
    /* Reduced height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--color-gray);
    /* Lighter for contrast */
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    /* Center buttons */
    gap: var(--spacing-sm);
}

.text-white {
    color: var(--color-white) !important;
}

.btn-light-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 0.8rem 2rem;
    font-weight: 600;
}

.btn-light-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Benefits */
.grid-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.benefit-card {
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card img {
    width: 64px;
    margin: 0 auto var(--spacing-sm);
}

/* Product Preview */
.product-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.product-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

/* Sector Buttons */
.sector-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--border-radius-md);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Detailed Features Grid */
.grid-features-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
}

.feature-item img {
    width: 48px;
    height: 48px;
}

.feature-text h4 {
    margin-bottom: 0.2rem;
    color: var(--color-primary-dark);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Testimonials */
.grid-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    padding: var(--spacing-md);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
}

.testimonial-card cite {
    font-weight: 500;
    color: var(--color-primary);
}

/* Clients / Logos (Ultra Pro Marquee) */
.clients.section {
    padding: var(--spacing-md) 0;
    position: relative;
}

.text-uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.logo-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-md) 0;
    background: var(--color-white);
    /* Fade masks */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: var(--spacing-lg);
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    /* Greatly Increased */
    height: 150px;
    /* Greatly Increased */
    filter: none;
    /* Removed grayscale */
    opacity: 1;
    /* Full opacity */
    transition: all 0.4s ease;
    cursor: pointer;
}

.marquee-item img {
    max-width: 100%;
    max-height: 120px;
    /* Greatly Increased */
    object-fit: contain;
    transition: transform 0.4s ease;
}

.marquee-item:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - (var(--spacing-lg) / 2)));
    }
}

/* Contact Form Section */
.bg-primary-light {
    background: linear-gradient(180deg, var(--color-light) 0%, rgba(0, 134, 203, 0.05) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.contact-form-wrapper {
    padding: var(--spacing-md);
    background: var(--color-white);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-gray);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 134, 203, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* Footer Full */
.footer {
    padding: var(--spacing-lg) 0;
    background: #1a1a1a;
    color: var(--color-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.footer-block {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--spacing-md);
}

.logo-block {
    flex: 0 0 auto;
    margin-right: var(--spacing-md);
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: var(--spacing-sm);
}

.contact-block .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--color-gray);
}

.contact-block .footer-contact-item a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.contact-block i {
    color: var(--color-primary);
    width: 20px;
}

.recent-posts-block h3,
.legal-links-block h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-links li {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.footer-links li:last-child {
    border-bottom: none;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Professional Contact Page Enhancements */
.contact-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0086cb 0%, #495fb8 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Offset fixed header */
}

.contact-hero::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 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-container {
    padding: 0 var(--spacing-md);
    margin-top: -80px; /* Overlap effect */
    position: relative;
    z-index: 10;
}

.professional-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 991px) {
    .professional-contact-grid {
        grid-template-columns: 1fr;
    }
}

.info-card-premium {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-premium);
    height: 100%;
}

.info-item-premium {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-item-premium:last-child {
    border-bottom: none;
}

.info-icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-secondary));
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.info-icon-wrapper i {
    color: white;
    font-size: 1.2rem;
}

.info-content h4 {
    margin-bottom: 0.2rem;
    color: var(--color-text);
    font-size: 1.1rem;
}

.info-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.info-content a {
    color: var(--color-text);
    font-weight: 500;
}

.info-content a:hover {
    color: var(--color-primary);
}

.contact-form-premium {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-premium);
    position: relative;
}

.contact-form-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--bg-gradient-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.floating-label-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-input {
    width: 100%;
    padding: 1rem 1rem;
    border: 2px solid #f0f0f0;
    border-radius: var(--border-radius-md);
    background: var(--input-bg);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.floating-input:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 134, 203, 0.1);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s ease all;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    background: white;
    padding: 0 0.4rem;
    color: var(--color-primary);
    font-weight: 600;
}

textarea.floating-input {
    min-height: 150px;
    resize: vertical;
}

.submit-btn-premium {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background: var(--bg-gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 134, 203, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 134, 203, 0.3);
    filter: brightness(1.1);
}

.submit-btn-premium i {
    transition: transform 0.3s ease;
}

.submit-btn-premium:hover i {
    transform: translateX(5px);
}